summaryrefslogtreecommitdiff
path: root/examples/elementary/test_tooltip.py
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/elementary/test_tooltip.py
parent9b78f1fc42722d0e4fc3a4f5561970dce75879b7 (diff)
Python-EFL: added new tooltip movement freeze API
* tooltip_move_freeze_push() * tooltip_move_freeze_pop() * tooltip_move_freeze_get()
Diffstat (limited to 'examples/elementary/test_tooltip.py')
-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):
182 182
183 bt = Button(win, text="Unlocked tooltip visibility"); 183 bt = Button(win, text="Unlocked tooltip visibility");
184 bt.tooltip_text_set( 184 bt.tooltip_text_set(
185 "This tooltip is unlocked visible,<br> clock the button to lock!") 185 "This tooltip is unlocked visible,<br> click the button to lock!")
186 data = dict() 186 data = dict()
187 bt.callback_clicked_add(_tt_visible_lock_toggle, data) 187 bt.callback_clicked_add(_tt_visible_lock_toggle, data)
188 bx.pack_end(bt) 188 bx.pack_end(bt)
189 bt.show() 189 bt.show()
190 190
191 def _tt_move_freeze_toggle(obj, *args, **kargs):
192 if obj.tooltip_move_freeze_get():
193 obj.text_set("Unfreezed tooltip movement");
194 obj.tooltip_move_freeze_pop()
195 else:
196 obj.text_set("Freezed tooltip movement");
197 obj.tooltip_move_freeze_push()
198
199 bt = Button(win, text="Freezed tooltip movement");
200 bt.tooltip_text_set(
201 "This tooltip has freezed movement,<br> click the button to unfreeze!")
202 bt.tooltip_move_freeze_push()
203 bt.callback_clicked_add(_tt_move_freeze_toggle)
204 bx.pack_end(bt)
205 bt.show()
206
191 en = Entry(win, scrollable=True, single_line=True, 207 en = Entry(win, scrollable=True, single_line=True,
192 entry="Hello, some scrolled entry here!", size_hint_weight=EXPAND_HORIZ, 208 entry="Hello, some scrolled entry here!", size_hint_weight=EXPAND_HORIZ,
193 size_hint_align=FILL_HORIZ) 209 size_hint_align=FILL_HORIZ)