projects
/
vuplus_dvbapp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
get the file for the BlinkingPixmap from skin.xml
[vuplus_dvbapp]
/
lib
/
python
/
Components
/
BlinkingPixmap.py
diff --git
a/lib/python/Components/BlinkingPixmap.py
b/lib/python/Components/BlinkingPixmap.py
index
e34e916
..
1f2f422
100644
(file)
--- a/
lib/python/Components/BlinkingPixmap.py
+++ b/
lib/python/Components/BlinkingPixmap.py
@@
-11,12
+11,10
@@
class BlinkingPixmap(GUIComponent, Pixmap):
SHOWN = 0
HIDDEN = 1
SHOWN = 0
HIDDEN = 1
- def __init__(self
, filename
):
+ def __init__(self):
Pixmap.__init__(self)
GUIComponent.__init__(self)
Pixmap.__init__(self)
GUIComponent.__init__(self)
- self.filename = filename
-
self.state = self.SHOWN
self.blinking = False
self.state = self.SHOWN
self.blinking = False
@@
-27,18
+25,18
@@
class BlinkingPixmap(GUIComponent, Pixmap):
def createWidget(self, parent):
def createWidget(self, parent):
- return self.getePixmap(parent
, self.filename
)
+ return self.getePixmap(parent)
def removeWidget(self, w):
pass
def removeWidget(self, w):
pass
- def showP
oint
(self):
- print "Show p
oint
"
+ def showP
ixmap
(self):
+ print "Show p
ixmap
"
self.state = self.SHOWN
self.instance.show()
self.state = self.SHOWN
self.instance.show()
- def hideP
oint
(self):
- print "Hide p
oint
"
+ def hideP
ixmap
(self):
+ print "Hide p
ixmap
"
self.state = self.HIDDEN
self.instance.hide()
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):
def blink(self):
if self.blinking == True:
if (self.state == self.SHOWN):
- self.hideP
oint
()
+ self.hideP
ixmap
()
elif (self.state == self.HIDDEN):
elif (self.state == self.HIDDEN):
- self.showP
oint
()
+ self.showP
ixmap
()
def startBlinking(self):
self.blinking = True
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):
def stopBlinking(self):
self.blinking = False
if (self.state == self.SHOWN):
- self.hideP
oint
()
+ self.hideP
ixmap
()
self.timer.stop()
class BlinkingPixmapConditional(BlinkingPixmap):
self.timer.stop()
class BlinkingPixmapConditional(BlinkingPixmap):
- def __init__(self
, filename
):
- BlinkingPixmap.__init__(self
, filename
)
+ def __init__(self):
+ BlinkingPixmap.__init__(self)
self.setConnect(None)
self.setConnect(None)