Closed GoogleCodeExporter closed 9 years ago
Sorry the error message
NameError: global name 'timer' is not defined
Original comment by mfara...@gmail.com
on 7 Feb 2015 at 2:22
This code is not from mine subtitles.py. In original subtitles.py is Message
class defined like this:
class Message(object):
def __init__(self, infowidget, errorwidget):
self.infowidget = infowidget
self.errorwidget = errorwidget
self.timer = eTimer()
self.timer.callback.append(self.hide)
def info(self, text, timeout=None):
self.timer.stop()
self.errorwidget.hide()
self.infowidget.setText(text)
self.infowidget.show()
if timeout:
self.timer.start(timeout, True)
def error(self, text, timeout=None):
self.timer.stop()
self.infowidget.hide()
self.errorwidget.setText(text)
self.errorwidget.show()
if timeout:
self.timer.start(timeout, True)
def hide(self):
self.timer.stop()
self.errorwidget.hide()
self.infowidget.hide()
Original comment by mx3Lm...@gmail.com
on 7 Feb 2015 at 4:11
Original comment by mx3Lm...@gmail.com
on 19 Feb 2015 at 11:01
Original issue reported on code.google.com by
mfara...@gmail.com
on 7 Feb 2015 at 2:21