summaryrefslogtreecommitdiff
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
parentaceff1456757fe17fd15054c7d22a1060af527ec (diff)
test: show python-efl and python versions in win title
-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 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# encoding: utf-8 2# encoding: utf-8
3 3
4import platform
4import logging 5import logging
5elog = logging.getLogger("efl") 6elog = logging.getLogger("efl")
6elog.setLevel(logging.INFO) 7elog.setLevel(logging.INFO)
@@ -23,7 +24,7 @@ elmlog = logging.getLogger("efl.elementary")
23elmlog.setLevel(logging.INFO) 24elmlog.setLevel(logging.INFO)
24 25
25from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH 26from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL, EXPAND_BOTH, FILL_BOTH
26from efl import elementary 27from efl import elementary, __version__
27from efl.elementary.window import StandardWindow 28from efl.elementary.window import StandardWindow
28from efl.elementary.box import Box, ELM_BOX_LAYOUT_FLOW_HORIZONTAL 29from efl.elementary.box import Box, ELM_BOX_LAYOUT_FLOW_HORIZONTAL
29from efl.elementary.button import Button 30from efl.elementary.button import Button
@@ -311,7 +312,9 @@ def cb_filter(en, win):
311 menu_create(en.text_get(), win) 312 menu_create(en.text_get(), win)
312 313
313if __name__ == "__main__": 314if __name__ == "__main__":
314 win = StandardWindow("test", "Python EFL test application") 315 title = "Python EFL version %s (on python: %s)" % (
316 __version__, platform.python_version())
317 win = StandardWindow("test", title)
315 win.callback_delete_request_add(destroy, "test1", "test2", 318 win.callback_delete_request_add(destroy, "test1", "test2",
316 str3="test3", str4="test4") 319 str3="test3", str4="test4")
317 320