davemds pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=23c6ffc8cfe2c13c7a2805ffcf5f8395b8886c37

commit 23c6ffc8cfe2c13c7a2805ffcf5f8395b8886c37
Author: Dave Andreoli <d...@gurumeditation.it>
Date:   Wed Aug 10 19:06:50 2016 +0200

    Docs and tests for new elm.Label styles
    
    default/left
    default/right
    marker/left
    marker/right
---
 doc/elementary/label.rst          | 10 +++++++++-
 examples/elementary/test_label.py | 25 +++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/doc/elementary/label.rst b/doc/elementary/label.rst
index 13f0fe7..7ec380a 100644
--- a/doc/elementary/label.rst
+++ b/doc/elementary/label.rst
@@ -20,9 +20,17 @@ Available styles
 ================
 
 ``default``
-    No animation
+    The default style
+``default/left``
+    Left aligned label (since 1.18)
+``default/right``
+    Right aligned label (since 1.18)
 ``marker``
     Centers the text in the label and makes it bold by default
+``marker/left``
+    Like marker but left aligned (since 1.18)
+``marker/right``
+    Like marker but right aligned (since 1.18)
 ``slide_long``
     The entire text appears from the right of the screen and
     slides until it disappears in the left of the screen(reappearing on
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()

-- 


Reply via email to