aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-08-10 19:06:50 +0200
committerDave Andreoli <dave@gurumeditation.it>2016-08-10 19:06:50 +0200
commit23c6ffc8cfe2c13c7a2805ffcf5f8395b8886c37 (patch)
treec58684fad04628e4813f9916c46b243d83cb66e2 /examples
parentMark the ComboBox widget as broken/deprecated. (diff)
downloadpython-efl-23c6ffc8cfe2c13c7a2805ffcf5f8395b8886c37.tar.gz
Docs and tests for new elm.Label styles
default/left default/right marker/left marker/right
Diffstat (limited to 'examples')
-rw-r--r--examples/elementary/test_label.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/examples/elementary/test_label.py b/examples/elementary/test_label.py
index b6d950b..0c4a10f 100644
--- a/examples/elementary/test_label.py
+++ b/examples/elementary/test_label.py
@@ -66,6 +66,31 @@ def label_clicked(obj):
vbox.pack_end(lb)
lb.show()
+ lb = Label(win, style="default/left", text="Left aligned style",
+ size_hint_weight=EXPAND_HORIZ, size_hint_align=FILL_BOTH)
+ vbox.pack_end(lb)
+ lb.show()
+
+ lb = Label(win, style="default/right", text="Right aligned style",
+ size_hint_weight=EXPAND_HORIZ, size_hint_align=FILL_BOTH)
+ vbox.pack_end(lb)
+ lb.show()
+
+ lb = Label(win, style="marker", text="Marker style",
+ size_hint_weight=EXPAND_HORIZ, size_hint_align=FILL_BOTH)
+ vbox.pack_end(lb)
+ lb.show()
+
+ lb = Label(win, style="marker/left", text="Marker left style",
+ size_hint_weight=EXPAND_HORIZ, size_hint_align=FILL_BOTH)
+ vbox.pack_end(lb)
+ lb.show()
+
+ lb = Label(win, style="marker/right", text="Marker right style",
+ size_hint_weight=EXPAND_HORIZ, size_hint_align=FILL_BOTH)
+ vbox.pack_end(lb)
+ lb.show()
+
sp = Separator(win, horizontal=True)
vbox.pack_end(sp)
sp.show()