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
ladyada
566611c61b
fix docstr
2019-03-10 16:33:29 -04:00
ladyada
9de1017804
account for dx in font glyphs, change width/height to max_glyphs (which is more realisticly described)
2019-03-10 16:32:27 -04:00
ladyada
c31a9ab888
lint
2019-03-10 15:56:01 -04:00
ladyada
630d199688
removed old example. calculate bounding box during text render
2019-03-10 15:45:05 -04:00
ladyada
a8b02b0408
demo for bounding box
2019-03-02 15:16:58 -05:00
ladyada
c64562f274
line spacer property
2019-03-02 14:21:07 -05:00
ladyada
f5866a593d
Align text to bottom left corner
2019-03-02 14:16:22 -05:00
Scott Shawcroft
5fc08a963f
Fix long line
2019-02-13 12:22:13 -08:00
Scott Shawcroft
6647f1cd3b
A couple fixes to TextArea
2019-02-13 12:13:40 -08:00
Scott Shawcroft
911ab7f1f5
Lint and fixup docs
2019-02-12 14:53:54 -08:00
Scott Shawcroft
8c8df5ccaa
Subclass Group and use new accessors.
...
Fixes #1
2019-02-11 17:53:41 -08:00
ladyada
2ff56762f4
not sure why but sometimes the group pop fails when updating text. also patching so we can use either firmware
2019-02-09 00:23:25 -05:00
ladyada
d326154018
update for new displayio naming
2019-02-03 13:52:48 -05:00
ladyada
e72eb2e6e8
tweak spacing
2019-01-27 20:25:20 -05:00
ladyada
1e388fc1f8
basic multiline
2019-01-27 19:36:32 -05:00
Scott Shawcroft
bd7ae0c440
Fix text setter.
...
It may still allocate new sprites but any shared prefix will be
reused.
Fixes #1
2019-01-18 15:48:15 -08:00