aboutsummaryrefslogtreecommitdiff
path: root/screens.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-01-26 01:15:38 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-01-26 01:15:38 +0000
commita5307ff8aa3456aa5bec285e7d94d8d7c014d131 (patch)
treeab4fbe6e2c7bbade138539349dab9f1d9923ce00 /screens.py
parentfef70b939aea15a2438f480d7bdd679e181dcb06 (diff)
downloadenigma2-a5307ff8aa3456aa5bec285e7d94d8d7c014d131.tar.gz
enigma2-a5307ff8aa3456aa5bec285e7d94d8d7c014d131.zip
update python
Diffstat (limited to 'screens.py')
-rw-r--r--screens.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/screens.py b/screens.py
index b68f669e..f0b06bda 100644
--- a/screens.py
+++ b/screens.py
@@ -15,14 +15,21 @@ class Screen(dict, HTMLSkin, GUISkin):
class testDialog(Screen):
def testDialogClick(self):
print "test dialog clicked!"
- self["title"].setText("bla")
+ if self.tries == 0:
+ self["title"].setText("Hihi - no, this doesn't work!")
+ else:
+ self["title"].setText("You tried it %d times without success now!" % self.tries )
+
+ self.tries += 1
def __init__(self):
- HTMLSkin.__init__(self, ("title", "okbutton"))
+ GUISkin.__init__(self)
b = Button("ok")
b.onClick = [ self.testDialogClick ]
self["okbutton"] = b
self["title"] = Header("Test Dialog - press ok to leave!")
+
+ self.tries = 0
# a clock display dialog
class clockDisplay(Screen):