X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ba02fb4aced5868d047a5bffbd2ed87583daee4d..81ae5bd362286a852f0851043bfccf1c754f3152:/screens.py diff --git a/screens.py b/screens.py index bd0f6fc4..e69de29b 100644 --- a/screens.py +++ b/screens.py @@ -1,42 +0,0 @@ -from components import * - -# some screens -def doGlobal(screen): - screen["clock"] = Clock() - -class Screen(dict, HTMLSkin, GUISkin): - """ bla """ - -# a test dialog -class testDialog(Screen): - def testDialogClick(self): - print "test dialog clicked!" - self["title"].setText("bla") - - def __init__(self): - HTMLSkin.__init__(self, ("title", "okbutton")) - b = Button("ok") - b.onClick = [ self.testDialogClick ] - self["okbutton"] = b - self["title"] = Header("Test Dialog - press ok to leave!") - -# a clock display dialog -class clockDisplay(Screen): - def okbutton(self): - print "clockDisplay close" - - def __init__(self, clock): - HTMLSkin.__init__(self, ("title", "theClock", "okbutton")) - self["theClock"] = clock - b = Button("bye") - b.onClick = [ self.okbutton ] - self["okbutton"] = b - #VolumeBar() - self["title"] = Header("clock dialog: here you see the current uhrzeit!") - -# defined screens -screens = { - "global": doGlobal, - "testDialog": testDialog, - "clockDisplay": clockDisplay } -