if (withTimer):
self.conditionCheckTimer = eTimer()
self.conditionCheckTimer.timeout.get().append(self.update)
- self.conditionCheckTimer.start(1000)
+ self.conditionCheckTimer.start(500)
def setConnect(self, conditionalFunction):
self.conditionalFunction = conditionalFunction
def activateCondition(self, condition):
if (condition):
if (self.state == self.HIDDEN):
- print "update: " + str(self) + " SHOW"
self.showWidget()
else:
if (self.state == self.SHOWN):
- print "update: " + str(self) + " HIDE"
self.hideWidget()
def update(self):