diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-01-09 16:29:34 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-01-09 16:29:34 +0000 |
| commit | ba02fb4aced5868d047a5bffbd2ed87583daee4d (patch) | |
| tree | bcfea66b1f7fd2212539a99abc074de1424ac9a0 /skin.py | |
| parent | 2494509cd031727d92c6556089c99711d16d8af9 (diff) | |
| download | enigma2-ba02fb4aced5868d047a5bffbd2ed87583daee4d.tar.gz enigma2-ba02fb4aced5868d047a5bffbd2ed87583daee4d.zip | |
- add more python stuff
- fix some gui/gdi
- add eslider
- improve windowstyle
Diffstat (limited to 'skin.py')
| -rw-r--r-- | skin.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/skin.py b/skin.py new file mode 100644 index 00000000..415f3412 --- /dev/null +++ b/skin.py @@ -0,0 +1,28 @@ +from enigma import * +import xml.dom.minidom + +def dump(x, i=0): + print " " * i + str(x) + try: + for n in x.childNodes: + dump(n, i + 1) + except: + None + +dom = xml.dom.minidom.parseString( + "<screen name=\"clockDialog\"> \ + <widget name=\"okbutton\" position=\"10,10\" size=\"280,40\" /> \ + <widget name=\"theClock\" position=\"10,60\" size=\"280,50\" /> \ + <widget name=\"title\" position=\"10,120\" size=\"280,50\" /> \ + </screen>") + +def applyGUIskin(screen, skin, name): + dump(dom[screen]) + screen.data["okbutton"]["instance"].move(ePoint(10, 10)) + screen.data["okbutton"]["instance"].resize(eSize(280, 40)) + + screen.data["theClock"]["instance"].move(ePoint(10, 60)) + screen.data["theClock"]["instance"].resize(eSize(280, 50)) + + screen.data["title"]["instance"].move(ePoint(10, 120)) + screen.data["title"]["instance"].resize(eSize(280, 50)) |
