- fixed lib/Makefile.am for "components" directory
authorFelix Domke <tmbinc@elitedvb.net>
Thu, 10 Feb 2005 00:36:00 +0000 (00:36 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Thu, 10 Feb 2005 00:36:00 +0000 (00:36 +0000)
 - hopefully simplified components

lib/Makefile.am
mytest.py
skin.py

index a09b9bc..72efc40 100644 (file)
@@ -1 +1 @@
-SUBDIRS = base dvb dvb_si gdi network service driver nav gui python
+SUBDIRS = base dvb dvb_si gdi network service driver nav gui python components
index 2f6cecf..4712ba1 100644 (file)
--- a/mytest.py
+++ b/mytest.py
@@ -101,16 +101,16 @@ class Session:
        def keyEvent(self, code):
 #              print "code " + str(code)
                if code == 32:
-                       self.currentDialog.data["okbutton"]["instance"].push()
+                       self.currentDialog["okbutton"].instance.push()
 
                if code == 33:
-                       self.currentDialog.data["channelSwitcher"]["instance"].push()
+                       self.currentDialog["channelSwitcher"].instance.push()
                
                if code >= 0x30 and code <= 0x39:
                        try:
-                               self.currentDialog.data["menu"]["instance"].moveSelection(code - 0x31)
+                               self.currentDialog["menu"].instance.moveSelection(code - 0x31)
                        except:
-                               self.currentDialog.data["list"]["instance"].moveSelection(code - 0x31)
+                               self.currentDialog["list"].instance.moveSelection(code - 0x31)
 
        def close(self):
                self.delayTimer.start(0, 1)
diff --git a/skin.py b/skin.py
index 936dcc9..5684c58 100644 (file)
--- a/skin.py
+++ b/skin.py
@@ -94,7 +94,7 @@ def applyGUIskin(screen, parent, skin, name):
                
                # get corresponding gui object
                try:
-                       guiObject = screen.data[wname]["instance"]
+                       guiObject = screen[wname].instance
                except:
                        raise str("component with name '" + wname + "' was not found in skin of screen '" + name + "'!")