aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2014-04-14 01:46:39 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2014-04-14 01:46:39 +0300
commitae64f89ab5e79b50e96ea1de2301e8f9216adc2a (patch)
treefb2de0129b4f8424bfc445b5ab50e2e5f69ede03 /examples
parentCode cleanup: List creation could be rewritten as a list literal (diff)
downloadpython-efl-ae64f89ab5e79b50e96ea1de2301e8f9216adc2a.tar.gz
Code cleanup: Trailing semicolon in the statement
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/dbus/test_bt_list_handles.py2
-rw-r--r--examples/elementary/test_actionslider.py2
-rw-r--r--examples/elementary/test_focus.py6
-rw-r--r--examples/elementary/test_gesture_layer.py2
-rw-r--r--examples/elementary/test_list.py10
-rw-r--r--examples/elementary/test_menu.py12
-rw-r--r--examples/elementary/test_popup.py2
-rw-r--r--examples/elementary/test_tooltip.py12
8 files changed, 24 insertions, 24 deletions
diff --git a/examples/dbus/test_bt_list_handles.py b/examples/dbus/test_bt_list_handles.py
index 8c11d81..6b514bf 100755
--- a/examples/dbus/test_bt_list_handles.py
+++ b/examples/dbus/test_bt_list_handles.py
@@ -19,7 +19,7 @@ if len(sys.argv) != 2:
sys.exit(1)
dbus_ml = dbus_mainloop.DBusEcoreMainLoop()
-bus = dbus.SystemBus(mainloop=dbus_ml);
+bus = dbus.SystemBus(mainloop=dbus_ml)
obj = bus.get_object("org.bluez", "/org/bluez/hci0")
adapter = dbus.Interface(obj, "org.bluez.Adapter")
diff --git a/examples/elementary/test_actionslider.py b/examples/elementary/test_actionslider.py
index 17cc090..8ba45da 100644
--- a/examples/elementary/test_actionslider.py
+++ b/examples/elementary/test_actionslider.py
@@ -124,7 +124,7 @@ def actionslider_clicked(obj):
acts.part_text_set("left", "Left")
acts.part_text_set("center", "Center")
acts.part_text_set("right", "Right")
- acts.text_set("Go");
+ acts.text_set("Go")
acts.callback_selected_add(_pos_selected_cb)
bx.pack_end(acts)
acts.show()
diff --git a/examples/elementary/test_focus.py b/examples/elementary/test_focus.py
index d187e3b..a428711 100644
--- a/examples/elementary/test_focus.py
+++ b/examples/elementary/test_focus.py
@@ -399,7 +399,7 @@ def _custom_chain_cb(chk, bx):
bx.focus_custom_chain_append(child, c)
c = child
elif i == 3:
- bx.focus_custom_chain_prepend(child, c);
+ bx.focus_custom_chain_prepend(child, c)
i += 1
else:
@@ -412,7 +412,7 @@ def focus4_clicked(obj, item=None):
win.focus_highlight_animate = True
fr = Frame(win, style="pad_large",
- size_hint_weight=EXPAND_BOTH);
+ size_hint_weight=EXPAND_BOTH)
win.resize_object_add(fr)
fr.show()
@@ -513,7 +513,7 @@ def focus5_clicked(obj, item=None):
win.focus_highlight_style = "glow"
fr = Frame(win, style="pad_large",
- size_hint_weight=EXPAND_BOTH);
+ size_hint_weight=EXPAND_BOTH)
win.resize_object_add(fr)
fr.show()
diff --git a/examples/elementary/test_gesture_layer.py b/examples/elementary/test_gesture_layer.py
index 2acae94..5792f05 100644
--- a/examples/elementary/test_gesture_layer.py
+++ b/examples/elementary/test_gesture_layer.py
@@ -175,7 +175,7 @@ def zoom_move(event_info, *args, **kwargs):
print("zoom move <%d,%d> <%f>" % (p.x, p.y, p.zoom))
po.zoom = po.base_zoom * p.zoom
- apply_changes(po);
+ apply_changes(po)
return EVAS_EVENT_FLAG_NONE
def zoom_end(event_info, *args, **kwargs):
diff --git a/examples/elementary/test_list.py b/examples/elementary/test_list.py
index a002c70..be0dbd4 100644
--- a/examples/elementary/test_list.py
+++ b/examples/elementary/test_list.py
@@ -88,31 +88,31 @@ def list_clicked(obj, item=None):
bt = Button(win, text="Hello", size_hint_weight=EXPAND_BOTH,
size_hint_align=(0.9, 0.5))
bt.callback_clicked_add(my_list_show_it, it1)
- tb2.pack(bt, 0, 0, 1, 1);
+ tb2.pack(bt, 0, 0, 1, 1)
bt.show()
bt = Button(win, text="How", size_hint_weight=EXPAND_BOTH,
size_hint_align=(0.9, 0.5))
bt.callback_clicked_add(my_list_show_it, it2)
- tb2.pack(bt, 0, 1, 1, 1);
+ tb2.pack(bt, 0, 1, 1, 1)
bt.show()
bt = Button(win, text="doing", size_hint_weight=EXPAND_BOTH,
size_hint_align=(0.9, 0.5))
bt.callback_clicked_add(my_list_show_it, it3)
- tb2.pack(bt, 0, 2, 1, 1);
+ tb2.pack(bt, 0, 2, 1, 1)
bt.show()
bt = Button(win, text="Here", size_hint_weight=EXPAND_BOTH,
size_hint_align=(0.9, 0.5))
bt.callback_clicked_add(my_list_show_it, it4)
- tb2.pack(bt, 0, 3, 1, 1);
+ tb2.pack(bt, 0, 3, 1, 1)
bt.show()
bt = Button(win, text="Maybe this...", size_hint_weight=EXPAND_BOTH,
size_hint_align=(0.9, 0.5))
bt.callback_clicked_add(my_list_show_it, it5)
- tb2.pack(bt, 0, 4, 1, 1);
+ tb2.pack(bt, 0, 4, 1, 1)
bt.show()
tb2.show()
diff --git a/examples/elementary/test_menu.py b/examples/elementary/test_menu.py
index 38111c1..7d2f3d8 100644
--- a/examples/elementary/test_menu.py
+++ b/examples/elementary/test_menu.py
@@ -20,13 +20,13 @@ def menu_populate_4(menu, item):
menu.item_separator_add(item)
- item3 = menu.item_add(item, "Disabled item", "document-print");
+ item3 = menu.item_add(item, "Disabled item", "document-print")
item3.disabled = True
- item3 = menu.item_add(item, "Disabled item", "mail-send");
+ item3 = menu.item_add(item, "Disabled item", "mail-send")
item3.disabled = True
- item3 = menu.item_add(item, "Disabled item", "refresh");
+ item3 = menu.item_add(item, "Disabled item", "refresh")
item3.disabled = True
def menu_populate_3(menu, item):
@@ -36,7 +36,7 @@ def menu_populate_3(menu, item):
menu.item_separator_add(item)
- item3 = menu.item_add(item, "Disabled item", "clock");
+ item3 = menu.item_add(item, "Disabled item", "clock")
item3.disabled = True
def menu_populate_2(menu, item):
@@ -48,11 +48,11 @@ def menu_populate_2(menu, item):
menu.item_separator_add(item)
- item2 = menu.item_add(item, "menu 2", "refresh");
+ item2 = menu.item_add(item, "menu 2", "refresh")
menu.item_separator_add(item)
- item3 = menu.item_add(item, "Disabled item", "mail-send");
+ item3 = menu.item_add(item, "Disabled item", "mail-send")
item3.disabled = True
menu_populate_4(menu, item2)
diff --git a/examples/elementary/test_popup.py b/examples/elementary/test_popup.py
index dc253d2..1c7b232 100644
--- a/examples/elementary/test_popup.py
+++ b/examples/elementary/test_popup.py
@@ -23,7 +23,7 @@ def cb_bnt_close(btn, popup):
popup.delete()
def cb_btn_restack(btn, popup):
- im = FilledImage(popup.evas);
+ im = FilledImage(popup.evas)
im.file = os.path.join(img_path, "mystrale_2.jpg")
im.move(40, 40)
im.resize(500, 320)
diff --git a/examples/elementary/test_tooltip.py b/examples/elementary/test_tooltip.py
index dee4266..be8c5a9 100644
--- a/examples/elementary/test_tooltip.py
+++ b/examples/elementary/test_tooltip.py
@@ -174,13 +174,13 @@ def tooltip_clicked(obj):
value = data.get("value")
data["value"] = not value
if value:
- obj.text_set("Unlocked tooltip visibility");
+ obj.text_set("Unlocked tooltip visibility")
obj.tooltip_hide()
else:
- obj.text_set("Locked tooltip visibility");
+ obj.text_set("Locked tooltip visibility")
obj.tooltip_show()
- bt = Button(win, text="Unlocked tooltip visibility");
+ bt = Button(win, text="Unlocked tooltip visibility")
bt.tooltip_text_set(
"This tooltip is unlocked visible,<br> click the button to lock!")
data = dict()
@@ -190,13 +190,13 @@ def tooltip_clicked(obj):
def _tt_move_freeze_toggle(obj, *args, **kargs):
if obj.tooltip_move_freeze_get():
- obj.text_set("Unfreezed tooltip movement");
+ obj.text_set("Unfreezed tooltip movement")
obj.tooltip_move_freeze_pop()
else:
- obj.text_set("Freezed tooltip movement");
+ obj.text_set("Freezed tooltip movement")
obj.tooltip_move_freeze_push()
- bt = Button(win, text="Freezed tooltip movement");
+ bt = Button(win, text="Freezed tooltip movement")
bt.tooltip_text_set(
"This tooltip has freezed movement,<br> click the button to unfreeze!")
bt.tooltip_move_freeze_push()