Commit graph

125 commits

Author SHA1 Message Date
Margaret Matocha
2efbd77edd removed comments and re-ran black 2020-06-05 20:24:03 -05:00
Margaret Matocha
f8c69dbe6b ran black for formatting 2020-06-05 19:06:09 -05:00
Margaret Matocha
dcd466207c eliminated a local variable 'bounds' 2020-06-05 18:59:39 -05:00
Margaret Matocha
b49ec93f37 checking the impact of variables on pylint error 2020-06-05 18:53:54 -05:00
Margaret Matocha
a1714217d2 reduced quantity of class instance variables: put padding into a tuple 2020-06-05 18:45:11 -05:00
Margaret Matocha
9f4c2df9b2 updated missing variable to reference back to self instance variables 2020-06-05 18:36:52 -05:00
Margaret Matocha
a52eede646 broke out a separate function for _create_background_box 2020-06-05 18:32:32 -05:00
Margaret Matocha
c6951dcb69 ran black again after pylint changes 2020-06-05 18:16:30 -05:00
Margaret Matocha
04ba5b35b3 updated to resolve pylint formatting warmings 2020-06-05 18:11:42 -05:00
Margaret Matocha
a90c00e4ac ran black for reformatting 2020-06-05 18:04:00 -05:00
Margaret Matocha
5c11366c86 deleted unnecessary variable 2020-06-05 15:41:39 -05:00
Margaret Matocha
ae577587e4 Hid the following variables inside the class (background_tight and padding_*) since there is are getter/setter and update functions 2020-06-05 14:06:24 -05:00
Margaret Matocha
ee5a5ab408 Deleted unnecessary comments 2020-06-05 13:12:11 -05:00
Margaret Matocha
c41ca13f0a ran black 2020-06-05 12:41:41 -05:00
Margaret Matocha
30e5a24edd Fixed insert error that could cause additional bitmap insertions, added options for padding, including *background_tight* Boolean and padding_top/bottom/left/right optional parameters 2020-06-05 12:30:06 -05:00
Margaret Matocha
fb0cfee6cc added rectangular bitmap tilegrid as background color 2020-06-03 23:48:08 -05:00
FoamyGuy
a392523a38 catch the group full exception and re-raise with more descriptive message 2020-05-31 10:29:56 -05:00
foamyguy
463fc685c4
Merge pull request #47 from kmatch98/fix_anchoring
Updated bounding_box "right" value to include trailing whitespace
2020-05-30 12:59:46 -05:00
Margaret Matocha
713692a889 Updated bounding box to include trailing whitespace 2020-05-29 11:18:26 -05:00
Jim Bennett
a2cec0b8d9 Quick and dirty workaround for #45 2020-05-28 18:31:33 -07:00
Margaret Matocha
6695e3c7c4 fixed an error I made to a comment 2020-05-23 16:10:32 -05:00
Margaret Matocha
a102ba2125 ran black 2020-05-23 11:45:19 -05:00
Margaret Matocha
68c9522a34 added pylint disable=too-many-instance-attributes to resolve getter-setter definitions 2020-05-23 11:42:07 -05:00
Margaret Matocha
ac63a182ec Added one more missing line, thanks foamyguy 2020-05-23 11:33:39 -05:00
Margaret Matocha
173d0c5b67 updated spacing in header and deleted one tab, thanks foamyguy 2020-05-23 11:32:37 -05:00
Margaret Matocha
ed64879d2d added a line in the comments to try to resolve unexpected indent response from Sphinx 2020-05-23 09:52:54 -05:00
Margaret Matocha
0defe7dea3 trial to overcome too many instance variables issue from pylint 2020-05-23 09:48:58 -05:00
Margaret Matocha
69cc1bf893 updated font and text setters, so that the anchored_position is properly set after a font or text change 2020-05-22 23:33:21 -05:00
Margaret Matocha
12d8b25f94 updated setter for anchor_point so that x,y are updated upon change to anchor_point 2020-05-22 22:43:01 -05:00
Margaret Matocha
995f3decba ran black 2020-05-22 22:29:58 -05:00
Margaret Matocha
e60fb65c70 Corrected calculation errors in anchored_position getter and setter 2020-05-22 22:13:43 -05:00
Margaret Matocha
a1c4859ca7 reverted back to previous revision without extra lines. Still no luck with Sphinx error... 2020-05-22 09:04:48 -05:00
Margaret Matocha
96f2f11555 modified comment description to try to overcome Sphinx Unexpected Indent error 2020-05-22 09:01:40 -05:00
Margaret Matocha
52a3becd77 deleted blank space, blank line, added some spaces after =, updated comment 2020-05-22 08:56:06 -05:00
Margaret Matocha
a2473b518e deleted one blank line 2020-05-22 08:44:09 -05:00
Margaret Matocha
b5593bc5e5 added comment for font setter to satisfy pylint 2020-05-22 08:38:39 -05:00
Margaret Matocha
b0ca00ef2f re-ran black for formatting 2020-05-22 08:33:02 -05:00
Margaret Matocha
37febaef3c updated newFont to new_font for plint 2020-05-22 08:30:51 -05:00
Margaret Matocha
bb79810529 Updated font.height and ran black formatter 2020-05-22 08:26:53 -05:00
Margaret Matocha
756088bbfc deleted print statements 2020-05-22 07:46:31 -05:00
Margaret Matocha
9a73454013 Added getter/setter for font to ensure proper screen update when font is changed 2020-05-22 07:44:51 -05:00
dherrada
19183b701c Ran black, made pylint 2.x compatible 2020-03-09 17:10:04 -04:00
FoamyGuy
72c5b627b9 fix constructor for visible black background color 2020-02-18 08:50:29 -06:00
FoamyGuy
4d65e55273 fix constructor for visible black background color 2020-02-17 21:45:11 -06:00
FoamyGuy
0fe25b5307 fix constructor for visible black background color 2020-02-17 21:44:52 -06:00
FoamyGuy
870643ae4e add leading underscore to _transparent_background 2020-02-17 21:26:40 -06:00
FoamyGuy
46b04fea72 fix for setting background to visible black 2020-02-17 19:43:21 -06:00
FoamyGuy
80ebaa9b0d remove unneeded else block 2020-02-17 19:35:50 -06:00
FoamyGuy
5dfc291763 fix setting background back to transparent. add logic to track transparency and return None when background is transparent. add more functionality to example. 2020-02-17 19:32:58 -06:00
FoamyGuy
7868b40ae4 fix typo 2020-02-14 20:22:39 -06:00
FoamyGuy
eae4cb4f48 adding getter setter properties for background_color 2020-02-14 18:37:40 -06:00
FoamyGuy
39431ec92d undo ide formatting changes 2020-02-14 18:30:38 -06:00
FoamyGuy
cefd4545f5 adding background_color and usage example 2020-02-14 18:22:20 -06:00
dherrada
0d8bc6377c Whitespace 2020-02-11 15:07:02 -05:00
dherrada
89ce1010af Added x and y as keyword arguments 2020-02-11 15:06:19 -05:00
Kattni Rembor
142054af67 Fixes issue where label will not display when value is False
If text value evaluates to False, label will not display.
This change resolves that issue.

Tested with proximity data that returns 0 when no object is present.
2020-02-02 16:32:53 -05:00
Kattni Rembor
45d124932f Convert text object to string. 2020-02-01 15:56:17 -05:00
Kattni
4d53a379ab
Merge pull request #22 from neoxharsh/master
Added "cx" and "cy" property to the label to change center of Label
2020-01-28 12:12:39 -05:00
foamyguy
86130b39f2
default x and y inside init
tested with simpletest and the anchor point test linked above.
2020-01-27 19:54:29 -06:00
foamyguy
344775b34a
pylint fix
adding _anchor_point into init
2020-01-27 18:09:12 -06:00
foamyguy
7c74bcd8ad
remove whitespace 2020-01-27 17:58:44 -06:00
foamyguy
12b47af9c2
fix return
removing unneeded _anchored_position variable.
2020-01-27 17:53:19 -06:00
foamyguy
2fdd09b0ff
Update label.py
fix for missing _anchor_point in init
2020-01-27 17:24:30 -06:00
foamyguy
3c1734bb97
changing to anchor point
moving to anchor point instead of cx and cy
2020-01-27 17:08:21 -06:00
Scott Shawcroft
5583c493ce
Add capital M note
Fixes #23
2019-12-11 12:17:58 -08:00
Harsh
a507e09991 Added property to change the center of the coordinates 2019-10-22 17:04:09 +11:00
Harsh
dce386c9c3 Added property to change the center of the coordinates 2019-10-22 16:55:58 +11:00
Harsh
9ce37d2ced Added property to change the center of the coordinates 2019-10-22 16:16:59 +11:00
Harsh
c2693bc02a Added property to change the center of the coordinates 2019-10-22 16:15:13 +11:00
Mike Renfro
8f731e1ccf Fixing Travis pylint error
Line too long
2019-03-23 21:40:14 -05:00
Mike Renfro
f23f66d287 Enabling users to set line spacing for multi-line labels 2019-03-23 21:28:26 -05:00
Jerry Needell
739c90426c fix calls to displayio.TileGrid usage of position 2019-03-14 17:09:54 -04:00
ladyada
8673868c50 last tyyyyyyyyyyyyyyyyypo 2019-03-11 22:24:10 -04:00
ladyada
73aaa01b91 add comment 2019-03-11 22:05:05 -04:00
ladyada
950ef06d3d move to label 2019-03-10 19:26:10 -04:00
Renamed from adafruit_display_text/text_area.py (Browse further)