aboutsummaryrefslogtreecommitdiff
path: root/mytest.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-01-18 06:56:52 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-01-18 06:56:52 +0000
commit13b7a9b397f36ca3195aad3702feb3db4cbb2f3e (patch)
tree26ae22a439b1845c4ec6ac438f59c733e1cad4c5 /mytest.py
parent7c12c1089cfbee5b0a390d5f3de37f85de210263 (diff)
downloadenigma2-13b7a9b397f36ca3195aad3702feb3db4cbb2f3e.tar.gz
enigma2-13b7a9b397f36ca3195aad3702feb3db4cbb2f3e.zip
slightly better example of using the signals (eButton::selected -> Button::onClick -> Screen "closed!")
Diffstat (limited to 'mytest.py')
-rw-r--r--mytest.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/mytest.py b/mytest.py
index e5dd7e96..53a398ed 100644
--- a/mytest.py
+++ b/mytest.py
@@ -108,6 +108,8 @@ def test():
# button.resize(eSize(80, 50))
wnd.show()
+
+ components["$002"].data["okbutton"]["instance"].push()
for x in range(200):
time.sleep(0.1)
@@ -116,7 +118,7 @@ def test():
r = 200 - x
else:
r = x
- components["$002"]["okbutton"].setValue(r)
+# components["$002"]["okbutton"].setValue(r)
desktop.paint()
#
@@ -131,3 +133,15 @@ def test():
return 0
+
+def testI2(a):
+ print "PYTHON says: it's a " + str(a) + "!!!"
+ return 0
+
+def testI(a = 0):
+ print "magic integer is " + str(a)
+
+ list = testsignal.get()
+ print "list -> " + str(list)
+ list.append(testI2)
+ return 1