Removed init/shutdown calls from tests and examples
This commit is contained in:
parent
e37026ec17
commit
4d73872f8f
|
@ -12,8 +12,8 @@ Improvements:
|
||||||
|
|
||||||
* Re-added evas.SmartObject (with incompatible API compared to the earlier
|
* Re-added evas.SmartObject (with incompatible API compared to the earlier
|
||||||
incarnation) and made elm.Object inherit from it.
|
incarnation) and made elm.Object inherit from it.
|
||||||
* Better init/shutdown management in eo/evas/ecore/elm, no more need to
|
* Better init/shutdown management in all modules, no more need to
|
||||||
manually call those functions (no harm in doing that though).
|
manually call those functions (no harm in doing it though).
|
||||||
|
|
||||||
|
|
||||||
Changes:
|
Changes:
|
||||||
|
|
1
TODO
1
TODO
|
@ -43,4 +43,3 @@ Elm
|
||||||
- video
|
- video
|
||||||
- web
|
- web
|
||||||
- window ?
|
- window ?
|
||||||
* How are the ecore events managed? for example: ELM_EVENT_PROCESS_FOREGROUND
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ class DBusNode(object):
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
return self._name
|
return self._name
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def parent(self):
|
def parent(self):
|
||||||
return self._parent
|
return self._parent
|
||||||
|
@ -72,17 +72,17 @@ class DBusInterface(DBusNode):
|
||||||
self._properties = []
|
self._properties = []
|
||||||
self._methods = []
|
self._methods = []
|
||||||
self._signals = []
|
self._signals = []
|
||||||
|
|
||||||
parent_obj.interfaces.append(self)
|
parent_obj.interfaces.append(self)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def properties(self):
|
def properties(self):
|
||||||
return self._properties
|
return self._properties
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def methods(self):
|
def methods(self):
|
||||||
return self._methods
|
return self._methods
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def signals(self):
|
def signals(self):
|
||||||
return self._signals
|
return self._signals
|
||||||
|
@ -184,7 +184,7 @@ def recursive_introspect(bus, named_service, object_path, ret_data=None):
|
||||||
# found a new object
|
# found a new object
|
||||||
obj = DBusObject(object_path, named_service)
|
obj = DBusObject(object_path, named_service)
|
||||||
ret_data.append(obj)
|
ret_data.append(obj)
|
||||||
|
|
||||||
for xml_node in xml_root:
|
for xml_node in xml_root:
|
||||||
# found an interface
|
# found an interface
|
||||||
if xml_node.tag == 'interface':
|
if xml_node.tag == 'interface':
|
||||||
|
@ -255,7 +255,7 @@ class NamesList(Genlist):
|
||||||
self.public_group = self.item_append(self.itc_g, "Public Services",
|
self.public_group = self.item_append(self.itc_g, "Public Services",
|
||||||
flags=elm.ELM_GENLIST_ITEM_GROUP)
|
flags=elm.ELM_GENLIST_ITEM_GROUP)
|
||||||
self.public_group.select_mode_set(elm.ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY)
|
self.public_group.select_mode_set(elm.ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY)
|
||||||
|
|
||||||
self.private_group = self.item_append(self.itc_g, "Private Services",
|
self.private_group = self.item_append(self.itc_g, "Private Services",
|
||||||
flags=elm.ELM_GENLIST_ITEM_GROUP)
|
flags=elm.ELM_GENLIST_ITEM_GROUP)
|
||||||
self.private_group.select_mode_set(elm.ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY)
|
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
|
# keep the list updated when a name changes
|
||||||
if self.sig1: self.sig1.remove()
|
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")
|
"NameOwnerChanged")
|
||||||
# bus.add_signal_receiver(self.name_acquired_cb, "NameAcquired")
|
# bus.add_signal_receiver(self.name_acquired_cb, "NameAcquired")
|
||||||
# bus.add_signal_receiver(self.name_lost_cb, "NameLost")
|
# bus.add_signal_receiver(self.name_lost_cb, "NameLost")
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
self.public_group.subitems_clear()
|
self.public_group.subitems_clear()
|
||||||
self.private_group.subitems_clear()
|
self.private_group.subitems_clear()
|
||||||
|
@ -281,10 +281,10 @@ class NamesList(Genlist):
|
||||||
def item_selected_cb(self, gl, item):
|
def item_selected_cb(self, gl, item):
|
||||||
name = item.data
|
name = item.data
|
||||||
self.win.detail_list.populate(name)
|
self.win.detail_list.populate(name)
|
||||||
|
|
||||||
def sort_cb(self, it1, it2):
|
def sort_cb(self, it1, it2):
|
||||||
return 1 if it1.data.lower() < it2.data.lower() else -1
|
return 1 if it1.data.lower() < it2.data.lower() else -1
|
||||||
|
|
||||||
|
|
||||||
def service_add(self, name):
|
def service_add(self, name):
|
||||||
print("service_add('%s')" % name)
|
print("service_add('%s')" % name)
|
||||||
|
@ -302,7 +302,7 @@ class NamesList(Genlist):
|
||||||
item.delete()
|
item.delete()
|
||||||
return
|
return
|
||||||
item = item.next
|
item = item.next
|
||||||
|
|
||||||
def name_owner_changed_cb(self, name, old_owner, new_owner):
|
def name_owner_changed_cb(self, name, old_owner, new_owner):
|
||||||
print("NameOwnerChanged(name='%s', old_owner='%s', new_owner='%s')" %
|
print("NameOwnerChanged(name='%s', old_owner='%s', new_owner='%s')" %
|
||||||
(name, old_owner, new_owner))
|
(name, old_owner, new_owner))
|
||||||
|
@ -352,8 +352,8 @@ class DetailList(Genlist):
|
||||||
self.callback_contract_request_add(self.contract_request_cb)
|
self.callback_contract_request_add(self.contract_request_cb)
|
||||||
self.callback_contracted_add(self.contracted_cb)
|
self.callback_contracted_add(self.contracted_cb)
|
||||||
self.callback_clicked_double_add(self.double_click_cb)
|
self.callback_clicked_double_add(self.double_click_cb)
|
||||||
|
|
||||||
|
|
||||||
def populate(self, name):
|
def populate(self, name):
|
||||||
print("populate: %s" % name)
|
print("populate: %s" % name)
|
||||||
self.clear()
|
self.clear()
|
||||||
|
@ -363,7 +363,7 @@ class DetailList(Genlist):
|
||||||
obj_item = self.item_append(self.itc_g, obj,
|
obj_item = self.item_append(self.itc_g, obj,
|
||||||
flags=elm.ELM_GENLIST_ITEM_GROUP)
|
flags=elm.ELM_GENLIST_ITEM_GROUP)
|
||||||
obj_item.select_mode_set(elm.ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY)
|
obj_item.select_mode_set(elm.ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY)
|
||||||
|
|
||||||
# interfaces
|
# interfaces
|
||||||
for iface in obj.interfaces:
|
for iface in obj.interfaces:
|
||||||
if options.hide_introspect_stuff and \
|
if options.hide_introspect_stuff and \
|
||||||
|
@ -392,7 +392,7 @@ class DetailList(Genlist):
|
||||||
iface = item.data
|
iface = item.data
|
||||||
for obj in iface.properties + iface.methods + iface.signals:
|
for obj in iface.properties + iface.methods + iface.signals:
|
||||||
self.item_sorted_insert(self.itc, obj, self.sort_cb, parent_item=item)
|
self.item_sorted_insert(self.itc, obj, self.sort_cb, parent_item=item)
|
||||||
|
|
||||||
def contract_request_cb(self, genlist, item):
|
def contract_request_cb(self, genlist, item):
|
||||||
item.expanded = False
|
item.expanded = False
|
||||||
|
|
||||||
|
@ -447,7 +447,7 @@ class MethodRunner(Popup):
|
||||||
sp.horizontal = True
|
sp.horizontal = True
|
||||||
sp.show()
|
sp.show()
|
||||||
vbox.pack_end(sp)
|
vbox.pack_end(sp)
|
||||||
|
|
||||||
# returns label + entry
|
# returns label + entry
|
||||||
label = Label(parent)
|
label = Label(parent)
|
||||||
label.size_hint_align = 0.0, 0.5
|
label.size_hint_align = 0.0, 0.5
|
||||||
|
@ -558,13 +558,13 @@ class MyWin(StandardWindow):
|
||||||
self.resize_object_add(box)
|
self.resize_object_add(box)
|
||||||
box.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
|
box.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
|
||||||
box.show()
|
box.show()
|
||||||
|
|
||||||
flip = FlipSelector(self)
|
flip = FlipSelector(self)
|
||||||
flip.item_append("Session Bus", self.flip_selected_cb, session_bus)
|
flip.item_append("Session Bus", self.flip_selected_cb, session_bus)
|
||||||
flip.item_append("System Bus", self.flip_selected_cb, system_bus)
|
flip.item_append("System Bus", self.flip_selected_cb, system_bus)
|
||||||
box.pack_end(flip)
|
box.pack_end(flip)
|
||||||
flip.show()
|
flip.show()
|
||||||
|
|
||||||
panes = Panes(self)
|
panes = Panes(self)
|
||||||
panes.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
|
panes.size_hint_weight = (evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND)
|
||||||
panes.size_hint_align = (evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
|
panes.size_hint_align = (evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL)
|
||||||
|
@ -594,8 +594,5 @@ class MyWin(StandardWindow):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elm.init()
|
|
||||||
win = MyWin()
|
win = MyWin()
|
||||||
elm.run()
|
elm.run()
|
||||||
elm.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -2,14 +2,13 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import efl.ecore
|
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
|
from subprocess import Popen, PIPE
|
||||||
|
|
||||||
init()
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
filename = sys.argv[1]
|
filename = sys.argv[1]
|
||||||
except IndexError, e:
|
except IndexError:
|
||||||
raise SystemExit("Usage: %s <filename>" % sys.argv[0])
|
raise SystemExit("Usage: %s <filename>" % sys.argv[0])
|
||||||
|
|
||||||
main_window = Window(w=800, h=600)
|
main_window = Window(w=800, h=600)
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import efl.ecore
|
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
|
# method 1
|
||||||
main_window = Window(w=800, h=600)
|
main_window = Window(w=800, h=600)
|
||||||
|
|
|
@ -224,10 +224,8 @@ def evas3d_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
evas3d_clicked(None)
|
evas3d_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -284,7 +284,6 @@ def access_clicked(obj, item=None):
|
||||||
# evas_object_show(win)
|
# evas_object_show(win)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320,520))
|
size=(320,520))
|
||||||
win.callback_delete_request_add(lambda o: elementary.exit())
|
win.callback_delete_request_add(lambda o: elementary.exit())
|
||||||
|
@ -320,4 +319,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -143,9 +143,7 @@ def actionslider_clicked(obj):
|
||||||
win.show()
|
win.show()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
actionslider_clicked(None)
|
actionslider_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -44,7 +44,6 @@ def bg_image_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application", size=(320,520))
|
win = StandardWindow("test", "python-elementary test application", size=(320,520))
|
||||||
win.callback_delete_request_add(lambda x: elementary.exit())
|
win.callback_delete_request_add(lambda x: elementary.exit())
|
||||||
|
|
||||||
|
@ -76,5 +75,4 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -167,7 +167,6 @@ def box_transition_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320,520))
|
size=(320,520))
|
||||||
win.callback_delete_request_add(lambda x: elementary.exit())
|
win.callback_delete_request_add(lambda x: elementary.exit())
|
||||||
|
@ -203,5 +202,4 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,6 @@ def bubble_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320,520))
|
size=(320,520))
|
||||||
win.callback_delete_request_add(lambda x: elementary.exit())
|
win.callback_delete_request_add(lambda x: elementary.exit())
|
||||||
|
@ -116,4 +115,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -52,10 +52,8 @@ def buttons_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
buttons_clicked(None)
|
buttons_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -231,7 +231,6 @@ def calendar3_clicked(obj, item=None):
|
||||||
win.show()
|
win.show()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320,520))
|
size=(320,520))
|
||||||
win.callback_delete_request_add(lambda o: elementary.exit())
|
win.callback_delete_request_add(lambda o: elementary.exit())
|
||||||
|
@ -267,4 +266,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -82,10 +82,8 @@ def check_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
check_clicked(None)
|
check_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -77,10 +77,8 @@ def clock_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
clock_clicked(None)
|
clock_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -78,9 +78,7 @@ def cnp_clicked(obj):
|
||||||
win.show()
|
win.show()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
cnp_clicked(None)
|
cnp_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -139,10 +139,8 @@ def colorselector_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
colorselector_clicked(None)
|
colorselector_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -356,9 +356,7 @@ def config_clicked(obj, data=None):
|
||||||
win.show()
|
win.show()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
config_clicked(None)
|
config_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -152,7 +152,6 @@ def conformant2_clicked(obj, item=None):
|
||||||
win.show()
|
win.show()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320,520))
|
size=(320,520))
|
||||||
win.callback_delete_request_add(lambda o: elementary.exit())
|
win.callback_delete_request_add(lambda o: elementary.exit())
|
||||||
|
@ -187,4 +186,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -77,9 +77,7 @@ def core_ecore_events_in_elm_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
core_ecore_events_in_elm_clicked(None)
|
core_ecore_events_in_elm_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -87,10 +87,8 @@ def core_evas_canvas_callbacks_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
core_evas_canvas_callbacks_clicked(None)
|
core_evas_canvas_callbacks_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -151,9 +151,7 @@ def core_evas_object_callbacks_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
core_evas_object_callbacks_clicked(None)
|
core_evas_object_callbacks_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -47,10 +47,8 @@ def core_evas_objects_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
core_evas_objects_clicked(None)
|
core_evas_objects_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -203,7 +203,5 @@ if __name__ == "__main__":
|
||||||
efl_log_handler = logging.StreamHandler()
|
efl_log_handler = logging.StreamHandler()
|
||||||
efl_log_handler.setFormatter(efl_log_form)
|
efl_log_handler.setFormatter(efl_log_form)
|
||||||
efl_log.addHandler(efl_log_handler)
|
efl_log.addHandler(efl_log_handler)
|
||||||
elementary.init()
|
|
||||||
core_evas_smart_clicked(None)
|
core_evas_smart_clicked(None)
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -187,10 +187,8 @@ def ctxpopup_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
ctxpopup_clicked(None)
|
ctxpopup_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,6 @@ def cursor3_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320,520))
|
size=(320,520))
|
||||||
win.callback_delete_request_add(lambda o: elementary.exit())
|
win.callback_delete_request_add(lambda o: elementary.exit())
|
||||||
|
@ -198,4 +197,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -60,9 +60,7 @@ def datetime_clicked(obj):
|
||||||
win.show()
|
win.show()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
datetime_clicked(None)
|
datetime_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -68,10 +68,8 @@ def dayselector_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
dayselector_clicked(None)
|
dayselector_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -108,9 +108,7 @@ def diskselector_clicked(obj):
|
||||||
win.show()
|
win.show()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
diskselector_clicked(None)
|
diskselector_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -577,7 +577,6 @@ def dnd_genlist_gengrid_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320,520))
|
size=(320,520))
|
||||||
win.callback_delete_request_add(lambda o: elementary.exit())
|
win.callback_delete_request_add(lambda o: elementary.exit())
|
||||||
|
@ -613,4 +612,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -448,7 +448,6 @@ def entry_notepad_clicked(obj, item=None):
|
||||||
win.show()
|
win.show()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320,520))
|
size=(320,520))
|
||||||
win.callback_delete_request_add(lambda o: elementary.exit())
|
win.callback_delete_request_add(lambda o: elementary.exit())
|
||||||
|
@ -484,4 +483,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -51,10 +51,8 @@ def evas_textgrid_clicked(obj, item=None):
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
evas.init()
|
evas.init()
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
evas_textgrid_clicked(None)
|
evas_textgrid_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
evas.shutdown()
|
evas.shutdown()
|
||||||
|
|
|
@ -130,7 +130,6 @@ def edje_external_video_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320,520))
|
size=(320,520))
|
||||||
win.callback_delete_request_add(lambda o: elementary.exit())
|
win.callback_delete_request_add(lambda o: elementary.exit())
|
||||||
|
@ -166,4 +165,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -260,9 +260,7 @@ def fileselector_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
fileselector_clicked(None)
|
fileselector_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -85,7 +85,6 @@ def fileselector_button_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
efl_log = logging.getLogger("efl")
|
efl_log = logging.getLogger("efl")
|
||||||
|
@ -94,4 +93,3 @@ if __name__ == "__main__":
|
||||||
fileselector_button_clicked(None)
|
fileselector_button_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -85,7 +85,6 @@ def fileselector_entry_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
efl_log = logging.getLogger("efl")
|
efl_log = logging.getLogger("efl")
|
||||||
|
@ -94,4 +93,3 @@ if __name__ == "__main__":
|
||||||
fileselector_entry_clicked(None)
|
fileselector_entry_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -212,7 +212,6 @@ def flip_interactive_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320,520))
|
size=(320,520))
|
||||||
win.callback_delete_request_add(lambda o: elementary.exit())
|
win.callback_delete_request_add(lambda o: elementary.exit())
|
||||||
|
@ -246,4 +245,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -118,9 +118,7 @@ def flipselector_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
flipselector_clicked(None)
|
flipselector_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -59,9 +59,7 @@ def floating_clicked(obj):
|
||||||
win.callback_delete_request_add(lambda o: elementary.exit())
|
win.callback_delete_request_add(lambda o: elementary.exit())
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
floating_clicked(None)
|
floating_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -554,7 +554,6 @@ def focus5_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320,520))
|
size=(320,520))
|
||||||
win.callback_delete_request_add(lambda o: elementary.exit())
|
win.callback_delete_request_add(lambda o: elementary.exit())
|
||||||
|
@ -590,4 +589,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -59,9 +59,7 @@ def frame_clicked(obj):
|
||||||
win.show()
|
win.show()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
frame_clicked(None)
|
frame_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -380,9 +380,7 @@ def gengrid_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
gengrid_clicked(None)
|
gengrid_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -797,7 +797,6 @@ def genlist11_clicked(obj, item=None):
|
||||||
win.show()
|
win.show()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320,520))
|
size=(320,520))
|
||||||
win.callback_delete_request_add(lambda o: elementary.exit())
|
win.callback_delete_request_add(lambda o: elementary.exit())
|
||||||
|
@ -839,4 +838,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -327,9 +327,7 @@ def gesture_layer_clicked(obj):
|
||||||
win.show()
|
win.show()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
gesture_layer_clicked(None)
|
gesture_layer_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -77,9 +77,7 @@ def grid_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
grid_clicked(None)
|
grid_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -121,7 +121,6 @@ def hover2_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320,520))
|
size=(320,520))
|
||||||
win.callback_delete_request_add(lambda o: elementary.exit())
|
win.callback_delete_request_add(lambda o: elementary.exit())
|
||||||
|
@ -154,4 +153,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -94,9 +94,7 @@ def hoversel_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
hoversel_clicked(None)
|
hoversel_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -168,7 +168,6 @@ def icon_standard_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320,520))
|
size=(320,520))
|
||||||
win.callback_delete_request_add(lambda o: elementary.exit())
|
win.callback_delete_request_add(lambda o: elementary.exit())
|
||||||
|
@ -202,4 +201,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -130,7 +130,6 @@ def image2_clicked(obj, it=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320, 520))
|
size=(320, 520))
|
||||||
win.callback_delete_request_add(lambda o: elementary.exit())
|
win.callback_delete_request_add(lambda o: elementary.exit())
|
||||||
|
@ -163,4 +162,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -93,9 +93,7 @@ def index_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
index_clicked(None)
|
index_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -91,10 +91,8 @@ def elm_input_events_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
elm_input_events_clicked(None)
|
elm_input_events_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -29,9 +29,7 @@ def inner_window_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
inner_window_clicked(None)
|
inner_window_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -148,9 +148,7 @@ def label_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
label_clicked(None)
|
label_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -49,9 +49,7 @@ def layout_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
layout_clicked(None)
|
layout_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -260,7 +260,6 @@ def list3_clicked(obj, item=None):
|
||||||
win.show()
|
win.show()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320,520))
|
size=(320,520))
|
||||||
win.callback_delete_request_add(lambda o: elementary.exit())
|
win.callback_delete_request_add(lambda o: elementary.exit())
|
||||||
|
@ -294,4 +293,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -47,10 +47,8 @@ def main_menu_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
main_menu_clicked(None)
|
main_menu_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -438,9 +438,7 @@ def map_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
map_clicked(None)
|
map_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -169,9 +169,7 @@ def mapbuf_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
mapbuf_clicked(None)
|
mapbuf_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -85,9 +85,7 @@ def menu_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
menu_clicked(None)
|
menu_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -180,10 +180,8 @@ def multibuttonentry_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
multibuttonentry_clicked(None)
|
multibuttonentry_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -129,9 +129,7 @@ def naviframe_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
naviframe_clicked(None)
|
naviframe_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -320,9 +320,7 @@ def notify_clicked(obj=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
notify_clicked(None)
|
notify_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -94,10 +94,8 @@ def panel_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
panel_clicked(None)
|
panel_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -60,10 +60,8 @@ def panel_scroll_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
panel_scroll_clicked(None)
|
panel_scroll_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -47,9 +47,7 @@ def panes_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
panes_clicked(None)
|
panes_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -62,9 +62,7 @@ def photo_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
photo_clicked(None)
|
photo_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -152,9 +152,7 @@ def photocam_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
photocam_clicked(None)
|
photocam_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -203,9 +203,7 @@ def popup_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
popup_clicked(None)
|
popup_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -151,9 +151,7 @@ def progressbar_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
progressbar_clicked(None)
|
progressbar_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -73,9 +73,7 @@ def radio_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
radio_clicked(None)
|
radio_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -183,9 +183,7 @@ def scroller_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
scroller_clicked(None)
|
scroller_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -94,9 +94,7 @@ def segment_control_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
segment_control_clicked(None)
|
segment_control_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -58,9 +58,7 @@ def separator_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
separator_clicked(None)
|
separator_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -245,10 +245,8 @@ def slider_clicked(obj):
|
||||||
rd.show()
|
rd.show()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
slider_clicked(None)
|
slider_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -165,9 +165,7 @@ def slideshow_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
slideshow_clicked(None)
|
slideshow_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -72,9 +72,7 @@ def spinner_clicked(obj):
|
||||||
win.show()
|
win.show()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
spinner_clicked(None)
|
spinner_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -126,9 +126,7 @@ def store_clicked(obj):
|
||||||
win.show()
|
win.show()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
store_clicked(None)
|
store_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -80,9 +80,7 @@ def sys_notify_clicked(obj):
|
||||||
win.show()
|
win.show()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
sys_notify_clicked(None)
|
sys_notify_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -291,7 +291,6 @@ def table7_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320,520))
|
size=(320,520))
|
||||||
win.callback_delete_request_add(lambda o: elementary.exit())
|
win.callback_delete_request_add(lambda o: elementary.exit())
|
||||||
|
@ -331,4 +330,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -88,10 +88,8 @@ def theme_clicked(obj, data=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
theme_clicked(None)
|
theme_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -59,9 +59,7 @@ def thumb_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
thumb_clicked(None)
|
thumb_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -205,7 +205,6 @@ def toolbar5_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320,520))
|
size=(320,520))
|
||||||
win.callback_delete_request_add(lambda o: elementary.exit())
|
win.callback_delete_request_add(lambda o: elementary.exit())
|
||||||
|
@ -240,4 +239,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -222,9 +222,7 @@ def tooltip_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
tooltip_clicked(None)
|
tooltip_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -362,7 +362,6 @@ def transit9_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
win = StandardWindow("test", "python-elementary test application",
|
win = StandardWindow("test", "python-elementary test application",
|
||||||
size=(320,520))
|
size=(320,520))
|
||||||
win.callback_delete_request_add(lambda o: elementary.exit())
|
win.callback_delete_request_add(lambda o: elementary.exit())
|
||||||
|
@ -404,4 +403,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -156,7 +156,5 @@ def transit_bezier_clicked(obj, item=None):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
transit_bezier_clicked(None)
|
transit_bezier_clicked(None)
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -43,9 +43,7 @@ def video_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
video_clicked(None)
|
video_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -146,9 +146,7 @@ def web_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
if not elementary.need_web():
|
if not elementary.need_web():
|
||||||
elementary.shutdown()
|
|
||||||
raise SystemExit("EFL-webkit not available!")
|
raise SystemExit("EFL-webkit not available!")
|
||||||
|
|
||||||
elementary.policy_set(elementary.ELM_POLICY_QUIT,
|
elementary.policy_set(elementary.ELM_POLICY_QUIT,
|
||||||
|
@ -157,4 +155,3 @@ if __name__ == "__main__":
|
||||||
web_clicked(None)
|
web_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
|
@ -149,10 +149,8 @@ def window_states_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
window_states_clicked(None)
|
window_states_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -39,10 +39,8 @@ def window_dialog_clicked(obj):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
elementary.init()
|
|
||||||
|
|
||||||
window_dialog_clicked(None)
|
window_dialog_clicked(None)
|
||||||
|
|
||||||
elementary.run()
|
elementary.run()
|
||||||
elementary.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -40,4 +40,3 @@ class TestDBusBasics(unittest.TestCase):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main(verbosity=2)
|
unittest.main(verbosity=2)
|
||||||
ecore.shutdown()
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ class TestTimer(unittest.TestCase):
|
||||||
|
|
||||||
self.assertEqual(before1, after1)
|
self.assertEqual(before1, after1)
|
||||||
self.assertEqual(before2, after2)
|
self.assertEqual(before2, after2)
|
||||||
self.assertNotEqual(before3, after3) # already deleted
|
self.assertNotEqual(before3, after3) # already deleted
|
||||||
self.assertNotEqual(before4, after4) # already deleted
|
self.assertNotEqual(before4, after4) # already deleted
|
||||||
|
|
||||||
self.assertEqual(t1.is_deleted(), False)
|
self.assertEqual(t1.is_deleted(), False)
|
||||||
|
@ -57,4 +57,3 @@ class TestTimer(unittest.TestCase):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main(verbosity=2)
|
unittest.main(verbosity=2)
|
||||||
ecore.shutdown()
|
|
||||||
|
|
|
@ -52,4 +52,3 @@ class TestAnimator(unittest.TestCase):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main(verbosity=2)
|
unittest.main(verbosity=2)
|
||||||
ecore.shutdown()
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ def poller_cb2(one, two, three, test):
|
||||||
|
|
||||||
class TestPoller(unittest.TestCase):
|
class TestPoller(unittest.TestCase):
|
||||||
def testInit(self):
|
def testInit(self):
|
||||||
|
|
||||||
p1 = ecore.Poller(4, poller_cb)
|
p1 = ecore.Poller(4, poller_cb)
|
||||||
p2 = ecore.Poller(2, poller_cb2, ecore.ECORE_POLLER_CORE,
|
p2 = ecore.Poller(2, poller_cb2, ecore.ECORE_POLLER_CORE,
|
||||||
"uno", "due", three="tre", test=self)
|
"uno", "due", three="tre", test=self)
|
||||||
|
@ -41,4 +41,3 @@ class TestPoller(unittest.TestCase):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main(verbosity=2)
|
unittest.main(verbosity=2)
|
||||||
ecore.shutdown()
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ class TestIdler(unittest.TestCase):
|
||||||
|
|
||||||
self.assertIsInstance(i1, ecore.Idler)
|
self.assertIsInstance(i1, ecore.Idler)
|
||||||
self.assertIsInstance(i2, ecore.Idler)
|
self.assertIsInstance(i2, ecore.Idler)
|
||||||
|
|
||||||
before1 = i1.__repr__()
|
before1 = i1.__repr__()
|
||||||
before2 = i2.__repr__()
|
before2 = i2.__repr__()
|
||||||
|
|
||||||
|
@ -36,8 +36,8 @@ class TestIdler(unittest.TestCase):
|
||||||
self.assertEqual(t.is_deleted(), True)
|
self.assertEqual(t.is_deleted(), True)
|
||||||
self.assertEqual(i1.is_deleted(), False)
|
self.assertEqual(i1.is_deleted(), False)
|
||||||
self.assertEqual(i2.is_deleted(), True)
|
self.assertEqual(i2.is_deleted(), True)
|
||||||
|
|
||||||
|
|
||||||
i1.delete()
|
i1.delete()
|
||||||
del t
|
del t
|
||||||
del i1
|
del i1
|
||||||
|
@ -46,4 +46,3 @@ class TestIdler(unittest.TestCase):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main(verbosity=2)
|
unittest.main(verbosity=2)
|
||||||
ecore.shutdown()
|
|
||||||
|
|
|
@ -63,4 +63,3 @@ class TestIdleEnterer(unittest.TestCase):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main(verbosity=2)
|
unittest.main(verbosity=2)
|
||||||
ecore.shutdown()
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ class TestIdleExiter(unittest.TestCase):
|
||||||
self.assertEqual(t.is_deleted(), True)
|
self.assertEqual(t.is_deleted(), True)
|
||||||
self.assertEqual(i1.is_deleted(), False)
|
self.assertEqual(i1.is_deleted(), False)
|
||||||
self.assertEqual(i2.is_deleted(), True)
|
self.assertEqual(i2.is_deleted(), True)
|
||||||
|
|
||||||
i1.delete()
|
i1.delete()
|
||||||
del i1
|
del i1
|
||||||
del i2 # already deleted since returned false
|
del i2 # already deleted since returned false
|
||||||
|
@ -62,4 +62,3 @@ class TestIdleExiter(unittest.TestCase):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main(verbosity=2)
|
unittest.main(verbosity=2)
|
||||||
ecore.shutdown()
|
|
||||||
|
|
|
@ -37,4 +37,3 @@ class TestFdHandler(unittest.TestCase):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main(verbosity=2)
|
unittest.main(verbosity=2)
|
||||||
ecore.shutdown()
|
|
||||||
|
|
|
@ -84,5 +84,3 @@ class TestExe(unittest.TestCase):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main(verbosity=2)
|
unittest.main(verbosity=2)
|
||||||
ecore.shutdown()
|
|
||||||
|
|
||||||
|
|
|
@ -26,11 +26,10 @@ class TestFileDownload(unittest.TestCase):
|
||||||
ecore.FileDownload("http://www.google.com", dst,
|
ecore.FileDownload("http://www.google.com", dst,
|
||||||
completion_cb = _completion_cb,
|
completion_cb = _completion_cb,
|
||||||
progress_cb = _progress_cb)
|
progress_cb = _progress_cb)
|
||||||
|
|
||||||
ecore.main_loop_begin()
|
ecore.main_loop_begin()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main(verbosity=2)
|
unittest.main(verbosity=2)
|
||||||
ecore.shutdown()
|
|
||||||
|
|
|
@ -82,4 +82,3 @@ class TestFileMonitor(unittest.TestCase):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main(verbosity=2)
|
unittest.main(verbosity=2)
|
||||||
ecore.shutdown()
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue