aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ecore
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2015-05-04 04:03:07 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2015-05-04 04:03:07 +0300
commit4d73872f8ff021138cdce88655559ba624d767a9 (patch)
tree81fff70fe11d000b1377b26b0afcd6e575514fbe /examples/ecore
parentRemove init/shutdown from elm and emotion main tests (diff)
downloadpython-efl-4d73872f8ff021138cdce88655559ba624d767a9.tar.gz
Removed init/shutdown calls from tests and examples
Diffstat (limited to 'examples/ecore')
-rw-r--r--examples/ecore/x/mplayer_embed.py5
-rw-r--r--examples/ecore/x/window_creation.py3
2 files changed, 3 insertions, 5 deletions
diff --git a/examples/ecore/x/mplayer_embed.py b/examples/ecore/x/mplayer_embed.py
index 079ded0..e1a62af 100644
--- a/examples/ecore/x/mplayer_embed.py
+++ b/examples/ecore/x/mplayer_embed.py
@@ -2,14 +2,13 @@
import sys
import efl.ecore
-from efl.ecore.x import init, Window, on_window_configure_add
+from efl.ecore.x import Window, on_window_configure_add
from subprocess import Popen, PIPE
-init()
try:
filename = sys.argv[1]
-except IndexError, e:
+except IndexError:
raise SystemExit("Usage: %s <filename>" % sys.argv[0])
main_window = Window(w=800, h=600)
diff --git a/examples/ecore/x/window_creation.py b/examples/ecore/x/window_creation.py
index 61c455a..f8275bb 100644
--- a/examples/ecore/x/window_creation.py
+++ b/examples/ecore/x/window_creation.py
@@ -1,9 +1,8 @@
#!/usr/bin/env python
import efl.ecore
-from efl.ecore.x import init, Window, on_window_configure_add
+from efl.ecore.x import Window, on_window_configure_add
-init()
# method 1
main_window = Window(w=800, h=600)