X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/7c12c1089cfbee5b0a390d5f3de37f85de210263..13b7a9b397f36ca3195aad3702feb3db4cbb2f3e:/mytest.py 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