aboutsummaryrefslogtreecommitdiffstats
path: root/examples
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
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')
-rwxr-xr-xexamples/dbus/test_dbus_spy.py41
-rw-r--r--examples/ecore/x/mplayer_embed.py5
-rw-r--r--examples/ecore/x/window_creation.py3
-rw-r--r--examples/elementary/test_3d.py2
-rw-r--r--examples/elementary/test_access.py2
-rw-r--r--examples/elementary/test_actionslider.py2
-rw-r--r--examples/elementary/test_bg.py2
-rw-r--r--examples/elementary/test_box.py2
-rw-r--r--examples/elementary/test_bubble.py2
-rw-r--r--examples/elementary/test_button.py2
-rw-r--r--examples/elementary/test_calendar.py2
-rw-r--r--examples/elementary/test_check.py2
-rw-r--r--examples/elementary/test_clock.py2
-rw-r--r--examples/elementary/test_cnp.py2
-rw-r--r--examples/elementary/test_colorselector.py2
-rw-r--r--examples/elementary/test_config.py2
-rw-r--r--examples/elementary/test_conform.py2
-rw-r--r--examples/elementary/test_core_ecore_events_in_elm.py2
-rw-r--r--examples/elementary/test_core_evas_canvas_callbacks.py2
-rw-r--r--examples/elementary/test_core_evas_object_callbacks.py2
-rw-r--r--examples/elementary/test_core_evas_objects.py2
-rw-r--r--examples/elementary/test_core_evas_smart.py2
-rw-r--r--examples/elementary/test_ctxpopup.py2
-rw-r--r--examples/elementary/test_cursor.py2
-rw-r--r--examples/elementary/test_datetime.py2
-rw-r--r--examples/elementary/test_dayselector.py2
-rw-r--r--examples/elementary/test_diskselector.py2
-rw-r--r--examples/elementary/test_dnd.py2
-rw-r--r--examples/elementary/test_entry.py2
-rw-r--r--examples/elementary/test_evas_textgrid.py2
-rw-r--r--examples/elementary/test_external.py2
-rw-r--r--examples/elementary/test_fileselector.py2
-rw-r--r--examples/elementary/test_fileselector_button.py2
-rw-r--r--examples/elementary/test_fileselector_entry.py2
-rw-r--r--examples/elementary/test_flip.py2
-rw-r--r--examples/elementary/test_flipselector.py2
-rw-r--r--examples/elementary/test_floating.py2
-rw-r--r--examples/elementary/test_focus.py2
-rw-r--r--examples/elementary/test_frame.py2
-rw-r--r--examples/elementary/test_gengrid.py2
-rw-r--r--examples/elementary/test_genlist.py2
-rw-r--r--examples/elementary/test_gesture_layer.py2
-rw-r--r--examples/elementary/test_grid.py2
-rw-r--r--examples/elementary/test_hover.py2
-rw-r--r--examples/elementary/test_hoversel.py2
-rw-r--r--examples/elementary/test_icon.py2
-rw-r--r--examples/elementary/test_image.py2
-rw-r--r--examples/elementary/test_index.py2
-rw-r--r--examples/elementary/test_input_events.py2
-rw-r--r--examples/elementary/test_inwin.py2
-rw-r--r--examples/elementary/test_label.py2
-rw-r--r--examples/elementary/test_layout.py2
-rw-r--r--examples/elementary/test_list.py2
-rw-r--r--examples/elementary/test_main_menu.py2
-rw-r--r--examples/elementary/test_map.py2
-rw-r--r--examples/elementary/test_mapbuf.py2
-rw-r--r--examples/elementary/test_menu.py2
-rw-r--r--examples/elementary/test_multibuttonentry.py2
-rw-r--r--examples/elementary/test_naviframe.py2
-rw-r--r--examples/elementary/test_notify.py2
-rw-r--r--examples/elementary/test_panel.py2
-rw-r--r--examples/elementary/test_panel_scroll.py2
-rw-r--r--examples/elementary/test_panes.py2
-rw-r--r--examples/elementary/test_photo.py2
-rw-r--r--examples/elementary/test_photocam.py2
-rw-r--r--examples/elementary/test_popup.py2
-rw-r--r--examples/elementary/test_progressbar.py2
-rw-r--r--examples/elementary/test_radio.py2
-rw-r--r--examples/elementary/test_scroller.py2
-rw-r--r--examples/elementary/test_segment_control.py2
-rw-r--r--examples/elementary/test_separator.py2
-rw-r--r--examples/elementary/test_slider.py2
-rw-r--r--examples/elementary/test_slideshow.py2
-rw-r--r--examples/elementary/test_spinner.py2
-rw-r--r--examples/elementary/test_store.py2
-rw-r--r--examples/elementary/test_sys_notify.py2
-rw-r--r--examples/elementary/test_table.py2
-rw-r--r--examples/elementary/test_theme.py2
-rw-r--r--examples/elementary/test_thumb.py2
-rw-r--r--examples/elementary/test_toolbar.py2
-rw-r--r--examples/elementary/test_tooltip.py2
-rw-r--r--examples/elementary/test_transit.py2
-rw-r--r--examples/elementary/test_transit_bezier.py2
-rw-r--r--examples/elementary/test_video.py2
-rw-r--r--examples/elementary/test_web.py3
-rw-r--r--examples/elementary/test_win.py2
-rw-r--r--examples/elementary/test_win_dialog.py2
87 files changed, 22 insertions, 196 deletions
diff --git a/examples/dbus/test_dbus_spy.py b/examples/dbus/test_dbus_spy.py
index 65b8fb8..fb7fff2 100755
--- a/examples/dbus/test_dbus_spy.py
+++ b/examples/dbus/test_dbus_spy.py
@@ -48,7 +48,7 @@ class DBusNode(object):
@property
def name(self):
return self._name
-
+
@property
def parent(self):
return self._parent
@@ -72,17 +72,17 @@ class DBusInterface(DBusNode):
self._properties = []
self._methods = []
self._signals = []
-
+
parent_obj.interfaces.append(self)
-
+
@property
def properties(self):
return self._properties
-
+
@property
def methods(self):
return self._methods
-
+
@property
def signals(self):
return self._signals
@@ -184,7 +184,7 @@ def recursive_introspect(bus, named_service, object_path, ret_data=None):
# found a new object
obj = DBusObject(object_path, named_service)
ret_data.append(obj)
-
+
for xml_node in xml_root:
# found an interface
if xml_node.tag == 'interface':
@@ -255,7 +255,7 @@ class NamesList(Genlist):
self.public_group = self.item_append(self.itc_g, "Public Services",
flags=elm.ELM_GENLIST_ITEM_GROUP)
self.public_group.select_mode_set(elm.ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY)
-
+
self.private_group = self.item_append(self.itc_g, "Private Services",
flags=elm.ELM_GENLIST_ITEM_GROUP)
self.private_group.select_mode_set(elm.ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY)
@@ -269,11 +269,11 @@ class NamesList(Genlist):
# keep the list updated when a name changes
if self.sig1: self.sig1.remove()
- self.sig1 = bus.add_signal_receiver(self.name_owner_changed_cb,
+ self.sig1 = bus.add_signal_receiver(self.name_owner_changed_cb,
"NameOwnerChanged")
# bus.add_signal_receiver(self.name_acquired_cb, "NameAcquired")
# bus.add_signal_receiver(self.name_lost_cb, "NameLost")
-
+
def clear(self):
self.public_group.subitems_clear()
self.private_group.subitems_clear()
@@ -281,10 +281,10 @@ class NamesList(Genlist):
def item_selected_cb(self, gl, item):
name = item.data
self.win.detail_list.populate(name)
-
+
def sort_cb(self, it1, it2):
return 1 if it1.data.lower() < it2.data.lower() else -1
-
+
def service_add(self, name):
print("service_add('%s')" % name)
@@ -302,7 +302,7 @@ class NamesList(Genlist):
item.delete()
return
item = item.next
-
+
def name_owner_changed_cb(self, name, old_owner, new_owner):
print("NameOwnerChanged(name='%s', old_owner='%s', new_owner='%s')" %
(name, old_owner, new_owner))
@@ -352,8 +352,8 @@ class DetailList(Genlist):
self.callback_contract_request_add(self.contract_request_cb)
self.callback_contracted_add(self.contracted_cb)
self.callback_clicked_double_add(self.double_click_cb)
-
-
+
+
def populate(self, name):
print("populate: %s" % name)
self.clear()
@@ -363,7 +363,7 @@ class DetailList(Genlist):
obj_item = self.item_append(self.itc_g, obj,
flags=elm.ELM_GENLIST_ITEM_GROUP)
obj_item.select_mode_set(elm.ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY)
-
+
# interfaces
for iface in obj.interfaces:
if options.hide_introspect_stuff and \
@@ -392,7 +392,7 @@ class DetailList(Genlist):
iface = item.data
for obj in iface.properties + iface.methods + iface.signals:
self.item_sorted_insert(self.itc, obj, self.sort_cb, parent_item=item)
-
+
def contract_request_cb(self, genlist, item):
item.expanded = False
@@ -447,7 +447,7 @@ class MethodRunner(Popup):
sp.horizontal = True
sp.show()
vbox.pack_end(sp)
-
+
# returns label + entry
label = Label(parent)
label.size_hint_align = 0.0, 0.5
@@ -558,13 +558,13 @@ class MyWin(StandardWindow):
self.resize_object_add(box)
box.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
box.show()
-
+
flip = FlipSelector(self)
flip.item_append("Session Bus", self.flip_selected_cb, session_bus)
flip.item_append("System Bus", self.flip_selected_cb, system_bus)
box.pack_end(flip)
flip.show()
-
+
panes = Panes(self)
panes.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
panes.size_hint_align = (evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
@@ -594,8 +594,5 @@ class MyWin(StandardWindow):
if __name__ == "__main__":
- elm.init()
win = MyWin()
elm.run()
- elm.shutdown()
-
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)
diff --git a/examples/elementary/test_3d.py b/examples/elementary/test_3d.py
index 2e7b303..1ab4b34 100644
--- a/examples/elementary/test_3d.py
+++ b/examples/elementary/test_3d.py
@@ -224,10 +224,8 @@ def evas3d_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
evas3d_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_access.py b/examples/elementary/test_access.py
index 88b3e90..b514972 100644
--- a/examples/elementary/test_access.py
+++ b/examples/elementary/test_access.py
@@ -284,7 +284,6 @@ def access_clicked(obj, item=None):
# evas_object_show(win)
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320,520))
win.callback_delete_request_add(lambda o: elementary.exit())
@@ -320,4 +319,3 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_actionslider.py b/examples/elementary/test_actionslider.py
index 5a9a0cf..e43fb69 100644
--- a/examples/elementary/test_actionslider.py
+++ b/examples/elementary/test_actionslider.py
@@ -143,9 +143,7 @@ def actionslider_clicked(obj):
win.show()
if __name__ == "__main__":
- elementary.init()
actionslider_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_bg.py b/examples/elementary/test_bg.py
index 35e5962..a593420 100644
--- a/examples/elementary/test_bg.py
+++ b/examples/elementary/test_bg.py
@@ -44,7 +44,6 @@ def bg_image_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application", size=(320,520))
win.callback_delete_request_add(lambda x: elementary.exit())
@@ -76,5 +75,4 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_box.py b/examples/elementary/test_box.py
index dfc9048..14d4cd2 100644
--- a/examples/elementary/test_box.py
+++ b/examples/elementary/test_box.py
@@ -167,7 +167,6 @@ def box_transition_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320,520))
win.callback_delete_request_add(lambda x: elementary.exit())
@@ -203,5 +202,4 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_bubble.py b/examples/elementary/test_bubble.py
index 35c5b0a..c0ff0f4 100644
--- a/examples/elementary/test_bubble.py
+++ b/examples/elementary/test_bubble.py
@@ -83,7 +83,6 @@ def bubble_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320,520))
win.callback_delete_request_add(lambda x: elementary.exit())
@@ -116,4 +115,3 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_button.py b/examples/elementary/test_button.py
index c2c0536..d973055 100644
--- a/examples/elementary/test_button.py
+++ b/examples/elementary/test_button.py
@@ -52,10 +52,8 @@ def buttons_clicked(obj):
if __name__ == "__main__":
- elementary.init()
buttons_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_calendar.py b/examples/elementary/test_calendar.py
index 6727b79..089fbbe 100644
--- a/examples/elementary/test_calendar.py
+++ b/examples/elementary/test_calendar.py
@@ -231,7 +231,6 @@ def calendar3_clicked(obj, item=None):
win.show()
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320,520))
win.callback_delete_request_add(lambda o: elementary.exit())
@@ -267,4 +266,3 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_check.py b/examples/elementary/test_check.py
index 5b54b7e..e32adb4 100644
--- a/examples/elementary/test_check.py
+++ b/examples/elementary/test_check.py
@@ -82,10 +82,8 @@ def check_clicked(obj):
if __name__ == "__main__":
- elementary.init()
check_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_clock.py b/examples/elementary/test_clock.py
index 7361ffa..111d0fd 100644
--- a/examples/elementary/test_clock.py
+++ b/examples/elementary/test_clock.py
@@ -77,10 +77,8 @@ def clock_clicked(obj):
if __name__ == "__main__":
- elementary.init()
clock_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_cnp.py b/examples/elementary/test_cnp.py
index 01ee024..975a30f 100644
--- a/examples/elementary/test_cnp.py
+++ b/examples/elementary/test_cnp.py
@@ -78,9 +78,7 @@ def cnp_clicked(obj):
win.show()
if __name__ == "__main__":
- elementary.init()
cnp_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_colorselector.py b/examples/elementary/test_colorselector.py
index ef03bf9..6877a7c 100644
--- a/examples/elementary/test_colorselector.py
+++ b/examples/elementary/test_colorselector.py
@@ -139,10 +139,8 @@ def colorselector_clicked(obj):
if __name__ == "__main__":
- elementary.init()
colorselector_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_config.py b/examples/elementary/test_config.py
index 40df48e..fb7f972 100644
--- a/examples/elementary/test_config.py
+++ b/examples/elementary/test_config.py
@@ -356,9 +356,7 @@ def config_clicked(obj, data=None):
win.show()
if __name__ == "__main__":
- elementary.init()
config_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_conform.py b/examples/elementary/test_conform.py
index bd1f7ad..41f896e 100644
--- a/examples/elementary/test_conform.py
+++ b/examples/elementary/test_conform.py
@@ -152,7 +152,6 @@ def conformant2_clicked(obj, item=None):
win.show()
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320,520))
win.callback_delete_request_add(lambda o: elementary.exit())
@@ -187,4 +186,3 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_core_ecore_events_in_elm.py b/examples/elementary/test_core_ecore_events_in_elm.py
index 10a90a0..0e52bec 100644
--- a/examples/elementary/test_core_ecore_events_in_elm.py
+++ b/examples/elementary/test_core_ecore_events_in_elm.py
@@ -77,9 +77,7 @@ def core_ecore_events_in_elm_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
core_ecore_events_in_elm_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_core_evas_canvas_callbacks.py b/examples/elementary/test_core_evas_canvas_callbacks.py
index bf78f80..add53ae 100644
--- a/examples/elementary/test_core_evas_canvas_callbacks.py
+++ b/examples/elementary/test_core_evas_canvas_callbacks.py
@@ -87,10 +87,8 @@ def core_evas_canvas_callbacks_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
core_evas_canvas_callbacks_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_core_evas_object_callbacks.py b/examples/elementary/test_core_evas_object_callbacks.py
index 9961500..a86f887 100644
--- a/examples/elementary/test_core_evas_object_callbacks.py
+++ b/examples/elementary/test_core_evas_object_callbacks.py
@@ -151,9 +151,7 @@ def core_evas_object_callbacks_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
core_evas_object_callbacks_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_core_evas_objects.py b/examples/elementary/test_core_evas_objects.py
index 5172170..1d98242 100644
--- a/examples/elementary/test_core_evas_objects.py
+++ b/examples/elementary/test_core_evas_objects.py
@@ -47,10 +47,8 @@ def core_evas_objects_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
core_evas_objects_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_core_evas_smart.py b/examples/elementary/test_core_evas_smart.py
index adb73fc..a5422ad 100644
--- a/examples/elementary/test_core_evas_smart.py
+++ b/examples/elementary/test_core_evas_smart.py
@@ -203,7 +203,5 @@ if __name__ == "__main__":
efl_log_handler = logging.StreamHandler()
efl_log_handler.setFormatter(efl_log_form)
efl_log.addHandler(efl_log_handler)
- elementary.init()
core_evas_smart_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_ctxpopup.py b/examples/elementary/test_ctxpopup.py
index a945651..fbe154a 100644
--- a/examples/elementary/test_ctxpopup.py
+++ b/examples/elementary/test_ctxpopup.py
@@ -187,10 +187,8 @@ def ctxpopup_clicked(obj):
if __name__ == "__main__":
- elementary.init()
ctxpopup_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_cursor.py b/examples/elementary/test_cursor.py
index a079392..9f71758 100644
--- a/examples/elementary/test_cursor.py
+++ b/examples/elementary/test_cursor.py
@@ -164,7 +164,6 @@ def cursor3_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320,520))
win.callback_delete_request_add(lambda o: elementary.exit())
@@ -198,4 +197,3 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_datetime.py b/examples/elementary/test_datetime.py
index ddaa6c3..9d218ec 100644
--- a/examples/elementary/test_datetime.py
+++ b/examples/elementary/test_datetime.py
@@ -60,9 +60,7 @@ def datetime_clicked(obj):
win.show()
if __name__ == "__main__":
- elementary.init()
datetime_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_dayselector.py b/examples/elementary/test_dayselector.py
index 877d500..1d9d77c 100644
--- a/examples/elementary/test_dayselector.py
+++ b/examples/elementary/test_dayselector.py
@@ -68,10 +68,8 @@ def dayselector_clicked(obj):
if __name__ == "__main__":
- elementary.init()
dayselector_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_diskselector.py b/examples/elementary/test_diskselector.py
index a2e4bea..4c30089 100644
--- a/examples/elementary/test_diskselector.py
+++ b/examples/elementary/test_diskselector.py
@@ -108,9 +108,7 @@ def diskselector_clicked(obj):
win.show()
if __name__ == "__main__":
- elementary.init()
diskselector_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_dnd.py b/examples/elementary/test_dnd.py
index 4c33e9c..c495be2 100644
--- a/examples/elementary/test_dnd.py
+++ b/examples/elementary/test_dnd.py
@@ -577,7 +577,6 @@ def dnd_genlist_gengrid_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320,520))
win.callback_delete_request_add(lambda o: elementary.exit())
@@ -613,4 +612,3 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_entry.py b/examples/elementary/test_entry.py
index de896d7..637343d 100644
--- a/examples/elementary/test_entry.py
+++ b/examples/elementary/test_entry.py
@@ -448,7 +448,6 @@ def entry_notepad_clicked(obj, item=None):
win.show()
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320,520))
win.callback_delete_request_add(lambda o: elementary.exit())
@@ -484,4 +483,3 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_evas_textgrid.py b/examples/elementary/test_evas_textgrid.py
index 8a281a8..c6a547d 100644
--- a/examples/elementary/test_evas_textgrid.py
+++ b/examples/elementary/test_evas_textgrid.py
@@ -51,10 +51,8 @@ def evas_textgrid_clicked(obj, item=None):
if __name__ == "__main__":
evas.init()
- elementary.init()
evas_textgrid_clicked(None)
elementary.run()
- elementary.shutdown()
evas.shutdown()
diff --git a/examples/elementary/test_external.py b/examples/elementary/test_external.py
index e575ed7..2fd08a8 100644
--- a/examples/elementary/test_external.py
+++ b/examples/elementary/test_external.py
@@ -130,7 +130,6 @@ def edje_external_video_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320,520))
win.callback_delete_request_add(lambda o: elementary.exit())
@@ -166,4 +165,3 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_fileselector.py b/examples/elementary/test_fileselector.py
index 50840f6..0e1ebb2 100644
--- a/examples/elementary/test_fileselector.py
+++ b/examples/elementary/test_fileselector.py
@@ -260,9 +260,7 @@ def fileselector_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
fileselector_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_fileselector_button.py b/examples/elementary/test_fileselector_button.py
index dd50db0..f6e32ee 100644
--- a/examples/elementary/test_fileselector_button.py
+++ b/examples/elementary/test_fileselector_button.py
@@ -85,7 +85,6 @@ def fileselector_button_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
import logging
efl_log = logging.getLogger("efl")
@@ -94,4 +93,3 @@ if __name__ == "__main__":
fileselector_button_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_fileselector_entry.py b/examples/elementary/test_fileselector_entry.py
index 8a09ae1..92ffd96 100644
--- a/examples/elementary/test_fileselector_entry.py
+++ b/examples/elementary/test_fileselector_entry.py
@@ -85,7 +85,6 @@ def fileselector_entry_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
import logging
efl_log = logging.getLogger("efl")
@@ -94,4 +93,3 @@ if __name__ == "__main__":
fileselector_entry_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_flip.py b/examples/elementary/test_flip.py
index 6501b6a..9b9719c 100644
--- a/examples/elementary/test_flip.py
+++ b/examples/elementary/test_flip.py
@@ -212,7 +212,6 @@ def flip_interactive_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320,520))
win.callback_delete_request_add(lambda o: elementary.exit())
@@ -246,4 +245,3 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_flipselector.py b/examples/elementary/test_flipselector.py
index 5c66e79..b34c417 100644
--- a/examples/elementary/test_flipselector.py
+++ b/examples/elementary/test_flipselector.py
@@ -118,9 +118,7 @@ def flipselector_clicked(obj):
if __name__ == "__main__":
- elementary.init()
flipselector_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_floating.py b/examples/elementary/test_floating.py
index 1be0d64..bf442e4 100644
--- a/examples/elementary/test_floating.py
+++ b/examples/elementary/test_floating.py
@@ -59,9 +59,7 @@ def floating_clicked(obj):
win.callback_delete_request_add(lambda o: elementary.exit())
if __name__ == "__main__":
- elementary.init()
floating_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_focus.py b/examples/elementary/test_focus.py
index ef26098..70d1616 100644
--- a/examples/elementary/test_focus.py
+++ b/examples/elementary/test_focus.py
@@ -554,7 +554,6 @@ def focus5_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320,520))
win.callback_delete_request_add(lambda o: elementary.exit())
@@ -590,4 +589,3 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_frame.py b/examples/elementary/test_frame.py
index 5aa979d..9e72692 100644
--- a/examples/elementary/test_frame.py
+++ b/examples/elementary/test_frame.py
@@ -59,9 +59,7 @@ def frame_clicked(obj):
win.show()
if __name__ == "__main__":
- elementary.init()
frame_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_gengrid.py b/examples/elementary/test_gengrid.py
index c11bbec..4b2ee6d 100644
--- a/examples/elementary/test_gengrid.py
+++ b/examples/elementary/test_gengrid.py
@@ -380,9 +380,7 @@ def gengrid_clicked(obj):
if __name__ == "__main__":
- elementary.init()
gengrid_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_genlist.py b/examples/elementary/test_genlist.py
index bc9c907..8d0e913 100644
--- a/examples/elementary/test_genlist.py
+++ b/examples/elementary/test_genlist.py
@@ -797,7 +797,6 @@ def genlist11_clicked(obj, item=None):
win.show()
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320,520))
win.callback_delete_request_add(lambda o: elementary.exit())
@@ -839,4 +838,3 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_gesture_layer.py b/examples/elementary/test_gesture_layer.py
index 15fd6e3..8c78d83 100644
--- a/examples/elementary/test_gesture_layer.py
+++ b/examples/elementary/test_gesture_layer.py
@@ -327,9 +327,7 @@ def gesture_layer_clicked(obj):
win.show()
if __name__ == "__main__":
- elementary.init()
gesture_layer_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_grid.py b/examples/elementary/test_grid.py
index ac007d7..c3d5bce 100644
--- a/examples/elementary/test_grid.py
+++ b/examples/elementary/test_grid.py
@@ -77,9 +77,7 @@ def grid_clicked(obj):
if __name__ == "__main__":
- elementary.init()
grid_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_hover.py b/examples/elementary/test_hover.py
index 007cd6d..d4db83a 100644
--- a/examples/elementary/test_hover.py
+++ b/examples/elementary/test_hover.py
@@ -121,7 +121,6 @@ def hover2_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320,520))
win.callback_delete_request_add(lambda o: elementary.exit())
@@ -154,4 +153,3 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_hoversel.py b/examples/elementary/test_hoversel.py
index 45a6739..9672c54 100644
--- a/examples/elementary/test_hoversel.py
+++ b/examples/elementary/test_hoversel.py
@@ -94,9 +94,7 @@ def hoversel_clicked(obj):
if __name__ == "__main__":
- elementary.init()
hoversel_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_icon.py b/examples/elementary/test_icon.py
index 3beed57..8503706 100644
--- a/examples/elementary/test_icon.py
+++ b/examples/elementary/test_icon.py
@@ -168,7 +168,6 @@ def icon_standard_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320,520))
win.callback_delete_request_add(lambda o: elementary.exit())
@@ -202,4 +201,3 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_image.py b/examples/elementary/test_image.py
index ece1949..afdcce8 100644
--- a/examples/elementary/test_image.py
+++ b/examples/elementary/test_image.py
@@ -130,7 +130,6 @@ def image2_clicked(obj, it=None):
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320, 520))
win.callback_delete_request_add(lambda o: elementary.exit())
@@ -163,4 +162,3 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_index.py b/examples/elementary/test_index.py
index 076d525..9607bd4 100644
--- a/examples/elementary/test_index.py
+++ b/examples/elementary/test_index.py
@@ -93,9 +93,7 @@ def index_clicked(obj):
if __name__ == "__main__":
- elementary.init()
index_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_input_events.py b/examples/elementary/test_input_events.py
index e9b46e8..1b8df2a 100644
--- a/examples/elementary/test_input_events.py
+++ b/examples/elementary/test_input_events.py
@@ -91,10 +91,8 @@ def elm_input_events_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
elm_input_events_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_inwin.py b/examples/elementary/test_inwin.py
index 97ff71a..3d9f899 100644
--- a/examples/elementary/test_inwin.py
+++ b/examples/elementary/test_inwin.py
@@ -29,9 +29,7 @@ def inner_window_clicked(obj):
if __name__ == "__main__":
- elementary.init()
inner_window_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_label.py b/examples/elementary/test_label.py
index 58e6c7c..b6d950b 100644
--- a/examples/elementary/test_label.py
+++ b/examples/elementary/test_label.py
@@ -148,9 +148,7 @@ def label_clicked(obj):
if __name__ == "__main__":
- elementary.init()
label_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_layout.py b/examples/elementary/test_layout.py
index 2540c9d..84faa45 100644
--- a/examples/elementary/test_layout.py
+++ b/examples/elementary/test_layout.py
@@ -49,9 +49,7 @@ def layout_clicked(obj):
if __name__ == "__main__":
- elementary.init()
layout_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_list.py b/examples/elementary/test_list.py
index 4a089d3..3f0c89e 100644
--- a/examples/elementary/test_list.py
+++ b/examples/elementary/test_list.py
@@ -260,7 +260,6 @@ def list3_clicked(obj, item=None):
win.show()
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320,520))
win.callback_delete_request_add(lambda o: elementary.exit())
@@ -294,4 +293,3 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_main_menu.py b/examples/elementary/test_main_menu.py
index 01628f5..f9893ae 100644
--- a/examples/elementary/test_main_menu.py
+++ b/examples/elementary/test_main_menu.py
@@ -47,10 +47,8 @@ def main_menu_clicked(obj):
if __name__ == "__main__":
- elementary.init()
main_menu_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_map.py b/examples/elementary/test_map.py
index f64e7e1..6c4ffa5 100644
--- a/examples/elementary/test_map.py
+++ b/examples/elementary/test_map.py
@@ -438,9 +438,7 @@ def map_clicked(obj):
if __name__ == "__main__":
- elementary.init()
map_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_mapbuf.py b/examples/elementary/test_mapbuf.py
index bce97ff..e0c1712 100644
--- a/examples/elementary/test_mapbuf.py
+++ b/examples/elementary/test_mapbuf.py
@@ -169,9 +169,7 @@ def mapbuf_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
mapbuf_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_menu.py b/examples/elementary/test_menu.py
index 94f43e6..f2b1a78 100644
--- a/examples/elementary/test_menu.py
+++ b/examples/elementary/test_menu.py
@@ -85,9 +85,7 @@ def menu_clicked(obj):
if __name__ == "__main__":
- elementary.init()
menu_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_multibuttonentry.py b/examples/elementary/test_multibuttonentry.py
index e57a6cd..b8ad5b6 100644
--- a/examples/elementary/test_multibuttonentry.py
+++ b/examples/elementary/test_multibuttonentry.py
@@ -180,10 +180,8 @@ def multibuttonentry_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
multibuttonentry_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_naviframe.py b/examples/elementary/test_naviframe.py
index 644f5af..9cfa75a 100644
--- a/examples/elementary/test_naviframe.py
+++ b/examples/elementary/test_naviframe.py
@@ -129,9 +129,7 @@ def naviframe_clicked(obj):
if __name__ == "__main__":
- elementary.init()
naviframe_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_notify.py b/examples/elementary/test_notify.py
index a62c2e2..a711324 100644
--- a/examples/elementary/test_notify.py
+++ b/examples/elementary/test_notify.py
@@ -320,9 +320,7 @@ def notify_clicked(obj=None):
if __name__ == "__main__":
- elementary.init()
notify_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_panel.py b/examples/elementary/test_panel.py
index fa11896..ee5e656 100644
--- a/examples/elementary/test_panel.py
+++ b/examples/elementary/test_panel.py
@@ -94,10 +94,8 @@ def panel_clicked(obj):
if __name__ == "__main__":
- elementary.init()
panel_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_panel_scroll.py b/examples/elementary/test_panel_scroll.py
index 016e9a7..c4d0a79 100644
--- a/examples/elementary/test_panel_scroll.py
+++ b/examples/elementary/test_panel_scroll.py
@@ -60,10 +60,8 @@ def panel_scroll_clicked(obj):
if __name__ == "__main__":
- elementary.init()
panel_scroll_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_panes.py b/examples/elementary/test_panes.py
index b28dfc7..6df91e5 100644
--- a/examples/elementary/test_panes.py
+++ b/examples/elementary/test_panes.py
@@ -47,9 +47,7 @@ def panes_clicked(obj):
if __name__ == "__main__":
- elementary.init()
panes_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_photo.py b/examples/elementary/test_photo.py
index 790bbb2..553b23a 100644
--- a/examples/elementary/test_photo.py
+++ b/examples/elementary/test_photo.py
@@ -62,9 +62,7 @@ def photo_clicked(obj):
if __name__ == "__main__":
- elementary.init()
photo_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_photocam.py b/examples/elementary/test_photocam.py
index 1eac672..7903e75 100644
--- a/examples/elementary/test_photocam.py
+++ b/examples/elementary/test_photocam.py
@@ -152,9 +152,7 @@ def photocam_clicked(obj):
if __name__ == "__main__":
- elementary.init()
photocam_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_popup.py b/examples/elementary/test_popup.py
index f495e55..a00e5f4 100644
--- a/examples/elementary/test_popup.py
+++ b/examples/elementary/test_popup.py
@@ -203,9 +203,7 @@ def popup_clicked(obj):
if __name__ == "__main__":
- elementary.init()
popup_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_progressbar.py b/examples/elementary/test_progressbar.py
index f41a1de..cee68e8 100644
--- a/examples/elementary/test_progressbar.py
+++ b/examples/elementary/test_progressbar.py
@@ -151,9 +151,7 @@ def progressbar_clicked(obj):
if __name__ == "__main__":
- elementary.init()
progressbar_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_radio.py b/examples/elementary/test_radio.py
index ebf07eb..5c93025 100644
--- a/examples/elementary/test_radio.py
+++ b/examples/elementary/test_radio.py
@@ -73,9 +73,7 @@ def radio_clicked(obj):
if __name__ == "__main__":
- elementary.init()
radio_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_scroller.py b/examples/elementary/test_scroller.py
index 1b01763..6178a79 100644
--- a/examples/elementary/test_scroller.py
+++ b/examples/elementary/test_scroller.py
@@ -183,9 +183,7 @@ def scroller_clicked(obj):
if __name__ == "__main__":
- elementary.init()
scroller_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_segment_control.py b/examples/elementary/test_segment_control.py
index 97adb61..95b86ea 100644
--- a/examples/elementary/test_segment_control.py
+++ b/examples/elementary/test_segment_control.py
@@ -94,9 +94,7 @@ def segment_control_clicked(obj):
if __name__ == "__main__":
- elementary.init()
segment_control_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_separator.py b/examples/elementary/test_separator.py
index 9871b82..cf52e67 100644
--- a/examples/elementary/test_separator.py
+++ b/examples/elementary/test_separator.py
@@ -58,9 +58,7 @@ def separator_clicked(obj):
if __name__ == "__main__":
- elementary.init()
separator_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_slider.py b/examples/elementary/test_slider.py
index c69e44d..a3d159a 100644
--- a/examples/elementary/test_slider.py
+++ b/examples/elementary/test_slider.py
@@ -245,10 +245,8 @@ def slider_clicked(obj):
rd.show()
if __name__ == "__main__":
- elementary.init()
slider_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_slideshow.py b/examples/elementary/test_slideshow.py
index effac2e..3f06bd6 100644
--- a/examples/elementary/test_slideshow.py
+++ b/examples/elementary/test_slideshow.py
@@ -165,9 +165,7 @@ def slideshow_clicked(obj):
if __name__ == "__main__":
- elementary.init()
slideshow_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_spinner.py b/examples/elementary/test_spinner.py
index e1ca38f..6b9457a 100644
--- a/examples/elementary/test_spinner.py
+++ b/examples/elementary/test_spinner.py
@@ -72,9 +72,7 @@ def spinner_clicked(obj):
win.show()
if __name__ == "__main__":
- elementary.init()
spinner_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_store.py b/examples/elementary/test_store.py
index 303d1bb..4a2f8d4 100644
--- a/examples/elementary/test_store.py
+++ b/examples/elementary/test_store.py
@@ -126,9 +126,7 @@ def store_clicked(obj):
win.show()
if __name__ == "__main__":
- elementary.init()
store_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_sys_notify.py b/examples/elementary/test_sys_notify.py
index 86fd005..4a8672b 100644
--- a/examples/elementary/test_sys_notify.py
+++ b/examples/elementary/test_sys_notify.py
@@ -80,9 +80,7 @@ def sys_notify_clicked(obj):
win.show()
if __name__ == "__main__":
- elementary.init()
sys_notify_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_table.py b/examples/elementary/test_table.py
index b4a8e67..8ffa551 100644
--- a/examples/elementary/test_table.py
+++ b/examples/elementary/test_table.py
@@ -291,7 +291,6 @@ def table7_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320,520))
win.callback_delete_request_add(lambda o: elementary.exit())
@@ -331,4 +330,3 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_theme.py b/examples/elementary/test_theme.py
index b21e4c7..d35754d 100644
--- a/examples/elementary/test_theme.py
+++ b/examples/elementary/test_theme.py
@@ -88,10 +88,8 @@ def theme_clicked(obj, data=None):
if __name__ == "__main__":
- elementary.init()
theme_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_thumb.py b/examples/elementary/test_thumb.py
index 74c74b9..3cf845e 100644
--- a/examples/elementary/test_thumb.py
+++ b/examples/elementary/test_thumb.py
@@ -59,9 +59,7 @@ def thumb_clicked(obj):
if __name__ == "__main__":
- elementary.init()
thumb_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_toolbar.py b/examples/elementary/test_toolbar.py
index d71d819..28568dd 100644
--- a/examples/elementary/test_toolbar.py
+++ b/examples/elementary/test_toolbar.py
@@ -205,7 +205,6 @@ def toolbar5_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320,520))
win.callback_delete_request_add(lambda o: elementary.exit())
@@ -240,4 +239,3 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_tooltip.py b/examples/elementary/test_tooltip.py
index 4e38003..43e00ec 100644
--- a/examples/elementary/test_tooltip.py
+++ b/examples/elementary/test_tooltip.py
@@ -222,9 +222,7 @@ def tooltip_clicked(obj):
if __name__ == "__main__":
- elementary.init()
tooltip_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_transit.py b/examples/elementary/test_transit.py
index 86709d7..18e4391 100644
--- a/examples/elementary/test_transit.py
+++ b/examples/elementary/test_transit.py
@@ -362,7 +362,6 @@ def transit9_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
win = StandardWindow("test", "python-elementary test application",
size=(320,520))
win.callback_delete_request_add(lambda o: elementary.exit())
@@ -404,4 +403,3 @@ if __name__ == "__main__":
win.show()
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_transit_bezier.py b/examples/elementary/test_transit_bezier.py
index 4c37d04..b1cdf24 100644
--- a/examples/elementary/test_transit_bezier.py
+++ b/examples/elementary/test_transit_bezier.py
@@ -156,7 +156,5 @@ def transit_bezier_clicked(obj, item=None):
if __name__ == "__main__":
- elementary.init()
transit_bezier_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_video.py b/examples/elementary/test_video.py
index 20bdab3..d84d617 100644
--- a/examples/elementary/test_video.py
+++ b/examples/elementary/test_video.py
@@ -43,9 +43,7 @@ def video_clicked(obj):
if __name__ == "__main__":
- elementary.init()
video_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_web.py b/examples/elementary/test_web.py
index 2c1bcff..ac848ac 100644
--- a/examples/elementary/test_web.py
+++ b/examples/elementary/test_web.py
@@ -146,9 +146,7 @@ def web_clicked(obj):
if __name__ == "__main__":
- elementary.init()
if not elementary.need_web():
- elementary.shutdown()
raise SystemExit("EFL-webkit not available!")
elementary.policy_set(elementary.ELM_POLICY_QUIT,
@@ -157,4 +155,3 @@ if __name__ == "__main__":
web_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_win.py b/examples/elementary/test_win.py
index ad87b3c..89396f7 100644
--- a/examples/elementary/test_win.py
+++ b/examples/elementary/test_win.py
@@ -149,10 +149,8 @@ def window_states_clicked(obj):
if __name__ == "__main__":
- elementary.init()
window_states_clicked(None)
elementary.run()
- elementary.shutdown()
diff --git a/examples/elementary/test_win_dialog.py b/examples/elementary/test_win_dialog.py
index 42b4356..122bd18 100644
--- a/examples/elementary/test_win_dialog.py
+++ b/examples/elementary/test_win_dialog.py
@@ -39,10 +39,8 @@ def window_dialog_clicked(obj):
if __name__ == "__main__":
- elementary.init()
window_dialog_clicked(None)
elementary.run()
- elementary.shutdown()