aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-02-07 12:55:21 +0100
committerDave Andreoli <dave@gurumeditation.it>2015-02-07 12:55:21 +0100
commit28da8bad4a85281e846e39b0220a4ab2048e42a2 (patch)
tree1d4943cf26065752f5dbda2c78c8afa0919fe970 /examples
parentDeprecate elm.Configuration.engine and preferred_engine (diff)
downloadpython-efl-28da8bad4a85281e846e39b0220a4ab2048e42a2.tar.gz
Fix Entry Anchor test
we need to import Hover if we want to use it
Diffstat (limited to 'examples')
-rw-r--r--examples/elementary/test_entry.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/elementary/test_entry.py b/examples/elementary/test_entry.py
index 1070f15..59b46dd 100644
--- a/examples/elementary/test_entry.py
+++ b/examples/elementary/test_entry.py
@@ -12,6 +12,7 @@ from efl.elementary.entry import Entry, ELM_SCROLLER_POLICY_OFF, \
ELM_SCROLLER_POLICY_ON, Entry_markup_to_utf8
from efl.elementary.list import List
from efl.elementary.frame import Frame
+from efl.elementary.hover import Hover
from efl.elementary.label import Label
from efl.elementary.separator import Separator
from efl.elementary.icon import Icon
@@ -27,6 +28,8 @@ class ScrollableEntry(Scrollable, Entry):
Entry.__init__(self, canvas, *args, **kwargs)
self.scrollable = True
+
+## Test "Entry"
def my_entry_bt_1(bt, en):
en.entry_set("")
@@ -44,7 +47,6 @@ def my_entry_bt_4(bt, en):
def my_entry_anchor_test(obj, anchor, en, *args, **kwargs):
en.entry_insert("ANCHOR CLICKED")
-
def entry_clicked(obj, item=None):
win = StandardWindow("entry", "Entry", autodel=True)
@@ -99,6 +101,7 @@ def entry_clicked(obj, item=None):
win.show()
+## Test "Entry Scrolled"
def scrolled_entry_bt_1(obj, data):
en = data
en.text = ""
@@ -343,6 +346,8 @@ def entry_scrolled_clicked(obj, item = None):
win.focus_set(True)
win.show()
+
+## Test "Entry Anchor"
def anchor_clicked(obj, event_info):
print("Entry object is %s" % (obj))
print("We should have EntryAnchorInfo here: %s" % (str(event_info)))
@@ -378,6 +383,7 @@ def entry_anchor_clicked(obj, item=None):
win.show()
+
if __name__ == "__main__":
elementary.init()
win = StandardWindow("test", "python-elementary test application",