aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/dbus/test_bt_list_handles.py4
-rwxr-xr-xexamples/dbus/test_bt_search_devices.py10
-rwxr-xr-xexamples/dbus/test_signal_recipient.py10
-rwxr-xr-xexamples/dbus/test_signal_simple.py2
-rw-r--r--examples/elementary/test_focus.py12
5 files changed, 19 insertions, 19 deletions
diff --git a/examples/dbus/test_bt_list_handles.py b/examples/dbus/test_bt_list_handles.py
index 6b514bf..52510ac 100755
--- a/examples/dbus/test_bt_list_handles.py
+++ b/examples/dbus/test_bt_list_handles.py
@@ -9,13 +9,13 @@ from efl import ecore
def print_remote_handles(adapter, bdaddr):
handles = [hex(int(h)) \
for h in list(adapter.GetRemoteServiceHandles(bdaddr, ""))]
- print "Handles:", handles
+ print("Handles:", handles)
ecore.idler_add(ecore.main_loop_quit)
return False
if len(sys.argv) != 2:
- print "USAGE: %s <bdaddr>" % sys.argv[0]
+ print("USAGE: %s <bdaddr>" % sys.argv[0])
sys.exit(1)
dbus_ml = dbus_mainloop.DBusEcoreMainLoop()
diff --git a/examples/dbus/test_bt_search_devices.py b/examples/dbus/test_bt_search_devices.py
index 9736f52..a4d1c53 100755
--- a/examples/dbus/test_bt_search_devices.py
+++ b/examples/dbus/test_bt_search_devices.py
@@ -6,20 +6,20 @@ from efl import ecore
def disc_started_signal():
- print "Signal: DiscoveryStarted()"
+ print("Signal: DiscoveryStarted()")
def rem_dev_found_signal(address, cls, rssi):
- print "Signal: RemoteDeviceFound(%s, %s, %s)" % (address, cls, rssi)
+ print("Signal: RemoteDeviceFound(%s, %s, %s)" % (address, cls, rssi))
def rem_dev_name_signal(address, name):
- print "Signal: RemoteNameUpdated(%s, %s)" % (address, name)
+ print("Signal: RemoteNameUpdated(%s, %s)" % (address, name))
def disc_completed_signal():
- print "Signal: DiscoveryCompleted()"
- ecore.idler_add(ecore.main_loop_quit)
+ print("Signal: DiscoveryCompleted()")
+ ecore.idler_add(ecore.main_loop_quit)
dbus_ml = dbus_mainloop.DBusEcoreMainLoop()
diff --git a/examples/dbus/test_signal_recipient.py b/examples/dbus/test_signal_recipient.py
index 9a97e11..2168f12 100755
--- a/examples/dbus/test_signal_recipient.py
+++ b/examples/dbus/test_signal_recipient.py
@@ -14,17 +14,17 @@ def emit_signal(obj):
def hello_signal_handler(hello_string):
- print "Received signal (by connecting using remote " \
- "object) and it says: %s" % hello_string
+ print("Received signal (by connecting using remote "
+ "object) and it says: %s" % hello_string)
def catchall_hello_signals_handler(hello_string):
- print "Received a hello signal and it says: %s" % hello_string
+ print("Received a hello signal and it says: %s" % hello_string)
def catchall_testservice_interface_handler(hello_string, dbus_message):
- print "com.example.TestService interface says %s " \
- "when it sent signal %s" % (hello_string, dbus_message.get_member())
+ print("com.example.TestService interface says %s "
+ "when it sent signal %s" % (hello_string, dbus_message.get_member()))
dbus_ml = dbus_mainloop.DBusEcoreMainLoop()
diff --git a/examples/dbus/test_signal_simple.py b/examples/dbus/test_signal_simple.py
index b113fbb..6f077cc 100755
--- a/examples/dbus/test_signal_simple.py
+++ b/examples/dbus/test_signal_simple.py
@@ -6,7 +6,7 @@ from efl import ecore
def print_name_owner_changed(obj, old, new):
- print "Obj = '%s', Old = '%s', New = '%s'" % (obj, old, new)
+ print("Obj = '%s', Old = '%s', New = '%s'" % (obj, old, new))
dbus_ml = dbus_mainloop.DBusEcoreMainLoop()
diff --git a/examples/elementary/test_focus.py b/examples/elementary/test_focus.py
index a428711..9856a64 100644
--- a/examples/elementary/test_focus.py
+++ b/examples/elementary/test_focus.py
@@ -227,12 +227,12 @@ def focus_clicked(obj, item=None):
# Focus 2
def _focus_obj(bt, newfocus):
- print newfocus
+ print(newfocus)
newfocus.focus = True
def _focus_layout_part(bt, layout):
newfocus = layout.edje.part_object_get("sky")
- print newfocus
+ print(newfocus)
newfocus.focus = True
@@ -308,12 +308,12 @@ def focus2_clicked(obj, item=None):
focused = None
def _focused_cb(obj):
global focused
- print obj
+ print(obj)
focused = obj
def _unfocused_cb(obj):
global focused
- print obj
+ print(obj)
focused = None
def _add_cb(bt, win, bx):
@@ -383,12 +383,12 @@ def _win_highlight_animate_cb(chk, win):
win.focus_highlight_animate = chk.state
def _custom_chain_cb(chk, bx):
- print chk.state
+ print(chk.state)
if chk.state is True:
i = 0
custom_chain = []
for child in bx.children:
- print child
+ print(child)
if i == 0:
c = child
custom_chain.append(child)