aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-02-23 14:18:19 +0100
committerdavemds <dave@gurumeditation.it>2014-02-23 14:18:19 +0100
commit04734af9f42c61254c90d5b4b530fa2228f53c9f (patch)
tree1496cc320c2e1b448c5c0e47d264315ebdaaafad /examples
parentPython emotion test: port all the changes done recently in the C test. (diff)
downloadpython-efl-04734af9f42c61254c90d5b4b530fa2228f53c9f.tar.gz
Python-EFL: added new tooltip movement freeze API
* tooltip_move_freeze_push() * tooltip_move_freeze_pop() * tooltip_move_freeze_get()
Diffstat (limited to 'examples')
-rw-r--r--examples/elementary/test_tooltip.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/examples/elementary/test_tooltip.py b/examples/elementary/test_tooltip.py
index 97078ae..dee4266 100644
--- a/examples/elementary/test_tooltip.py
+++ b/examples/elementary/test_tooltip.py
@@ -182,12 +182,28 @@ def tooltip_clicked(obj):
bt = Button(win, text="Unlocked tooltip visibility");
bt.tooltip_text_set(
- "This tooltip is unlocked visible,<br> clock the button to lock!")
+ "This tooltip is unlocked visible,<br> click the button to lock!")
data = dict()
bt.callback_clicked_add(_tt_visible_lock_toggle, data)
bx.pack_end(bt)
bt.show()
+ def _tt_move_freeze_toggle(obj, *args, **kargs):
+ if obj.tooltip_move_freeze_get():
+ obj.text_set("Unfreezed tooltip movement");
+ obj.tooltip_move_freeze_pop()
+ else:
+ obj.text_set("Freezed tooltip movement");
+ obj.tooltip_move_freeze_push()
+
+ bt = Button(win, text="Freezed tooltip movement");
+ bt.tooltip_text_set(
+ "This tooltip has freezed movement,<br> click the button to unfreeze!")
+ bt.tooltip_move_freeze_push()
+ bt.callback_clicked_add(_tt_move_freeze_toggle)
+ bx.pack_end(bt)
+ bt.show()
+
en = Entry(win, scrollable=True, single_line=True,
entry="Hello, some scrolled entry here!", size_hint_weight=EXPAND_HORIZ,
size_hint_align=FILL_HORIZ)