X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/a5307ff8aa3456aa5bec285e7d94d8d7c014d131..cd621fe499141885e5a0d8b4e42a0f8a7f41a9ac:/screens.py diff --git a/screens.py b/screens.py index f0b06bda..cf1dac10 100644 --- a/screens.py +++ b/screens.py @@ -14,11 +14,7 @@ class Screen(dict, HTMLSkin, GUISkin): # a test dialog class testDialog(Screen): def testDialogClick(self): - print "test dialog clicked!" - 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["title"].setText(self["menu"].getCurrent()) self.tries += 1 @@ -28,6 +24,7 @@ class testDialog(Screen): b.onClick = [ self.testDialogClick ] self["okbutton"] = b self["title"] = Header("Test Dialog - press ok to leave!") + self["menu"] = MenuList() self.tries = 0