aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-11-26 03:00:38 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-11-26 03:00:38 +0000
commit4ae10f76135d53a4285fd458a87f485695c9fbd7 (patch)
treebc21652b7050eea634a13aa5b8fdd94dd9b993d7 /lib/python
parentcb52eb273bed4c28716b501fbbf128d2c7046d57 (diff)
downloadenigma2-4ae10f76135d53a4285fd458a87f485695c9fbd7.tar.gz
enigma2-4ae10f76135d53a4285fd458a87f485695c9fbd7.zip
get the file for the BlinkingPixmap from skin.xml
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/BlinkingPixmap.py24
-rw-r--r--lib/python/Components/Pixmap.py11
-rw-r--r--lib/python/Screens/InfoBarGenerics.py4
3 files changed, 18 insertions, 21 deletions
diff --git a/lib/python/Components/BlinkingPixmap.py b/lib/python/Components/BlinkingPixmap.py
index e34e9165..1f2f4225 100644
--- a/lib/python/Components/BlinkingPixmap.py
+++ b/lib/python/Components/BlinkingPixmap.py
@@ -11,12 +11,10 @@ class BlinkingPixmap(GUIComponent, Pixmap):
SHOWN = 0
HIDDEN = 1
- def __init__(self, filename):
+ def __init__(self):
Pixmap.__init__(self)
GUIComponent.__init__(self)
- self.filename = filename
-
self.state = self.SHOWN
self.blinking = False
@@ -27,18 +25,18 @@ class BlinkingPixmap(GUIComponent, Pixmap):
def createWidget(self, parent):
- return self.getePixmap(parent, self.filename)
+ return self.getePixmap(parent)
def removeWidget(self, w):
pass
- def showPoint(self):
- print "Show point"
+ def showPixmap(self):
+ print "Show pixmap"
self.state = self.SHOWN
self.instance.show()
- def hidePoint(self):
- print "Hide point"
+ def hidePixmap(self):
+ print "Hide pixmap"
self.state = self.HIDDEN
self.instance.hide()
@@ -48,9 +46,9 @@ class BlinkingPixmap(GUIComponent, Pixmap):
def blink(self):
if self.blinking == True:
if (self.state == self.SHOWN):
- self.hidePoint()
+ self.hidePixmap()
elif (self.state == self.HIDDEN):
- self.showPoint()
+ self.showPixmap()
def startBlinking(self):
self.blinking = True
@@ -59,12 +57,12 @@ class BlinkingPixmap(GUIComponent, Pixmap):
def stopBlinking(self):
self.blinking = False
if (self.state == self.SHOWN):
- self.hidePoint()
+ self.hidePixmap()
self.timer.stop()
class BlinkingPixmapConditional(BlinkingPixmap):
- def __init__(self, filename):
- BlinkingPixmap.__init__(self, filename)
+ def __init__(self):
+ BlinkingPixmap.__init__(self)
self.setConnect(None)
diff --git a/lib/python/Components/Pixmap.py b/lib/python/Components/Pixmap.py
index c97c0ab1..b6620d9a 100644
--- a/lib/python/Components/Pixmap.py
+++ b/lib/python/Components/Pixmap.py
@@ -3,23 +3,22 @@ import skin
from enigma import *
class Pixmap:
- """Pixmap can be used for components which use a pixmap"""
+ """Pixmap can be used for components which diplay a pixmap"""
def __init__(self):
self.instance = None
def GUIcreate(self, parent):
self.instance = self.createWidget(parent)
- #self.instance.setText(self.message)
def GUIdelete(self):
self.removeWidget(self.instance)
self.instance = None
- def getePixmap(self, parent, filename):
- pixmap = ePixmap(parent)
- pixmap.setPixmapFromFile(filename)
- return pixmap
+ def getePixmap(self, parent):
+ #pixmap = ePixmap(parent)
+ #pixmap.setPixmapFromFile(self.filename)
+ return ePixmap(parent)
def removeWidget(self, instance):
pass
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index 3dc59cff..ce2c0da5 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -393,8 +393,8 @@ class InfoBarInstantRecord:
})
self.recording = None
- self["BlinkingPoint"] = BlinkingPixmapConditional("/usr/share/enigma2/record.png")
- self.onShown.append(self["BlinkingPoint"].hidePoint)
+ self["BlinkingPoint"] = BlinkingPixmapConditional()
+ self.onShown.append(self["BlinkingPoint"].hidePixmap)
def stopCurrentRecording(self):
self.session.nav.RecordTimer.removeEntry(self.recording)