aboutsummaryrefslogtreecommitdiffstats
path: root/examples/elementary
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-11-14 17:54:21 +0100
committerDave Andreoli <dave@gurumeditation.it>2015-11-14 17:54:21 +0100
commit5594375faca15746a4519ccfef4080e251b99bf9 (patch)
tree266bdb6d6ffdd7ce5a7bf006db0458484d7e4a83 /examples/elementary
parentPrepare the 1.16 release (diff)
downloadpython-efl-5594375faca15746a4519ccfef4080e251b99bf9.tar.gz
test: show python-efl and python versions in win title
Diffstat (limited to 'examples/elementary')
-rwxr-xr-xexamples/elementary/test.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/elementary/test.py b/examples/elementary/test.py
index abb0cb4..e1a4e00 100755
--- a/examples/elementary/test.py
+++ b/examples/elementary/test.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# encoding: utf-8
+import platform
import logging
elog = logging.getLogger("efl")
elog.setLevel(logging.INFO)
@@ -23,7 +24,7 @@ elmlog = logging.getLogger("efl.elementary")
elmlog.setLevel(logging.INFO)
from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
-from efl import elementary
+from efl import elementary, __version__
from efl.elementary.window import StandardWindow
from efl.elementary.box import Box, ELM_BOX_LAYOUT_FLOW_HORIZONTAL
from efl.elementary.button import Button
@@ -311,7 +312,9 @@ def cb_filter(en, win):
menu_create(en.text_get(), win)
if __name__ == "__main__":
- win = StandardWindow("test", "Python EFL test application")
+ title = "Python EFL version %s (on python: %s)" % (
+ __version__, platform.python_version())
+ win = StandardWindow("test", title)
win.callback_delete_request_add(destroy, "test1", "test2",
str3="test3", str4="test4")