def hideWidget(self):
self.state = self.HIDDEN
self.instance.hide()
+
+ def move(self, x, y):
+ self.instance.move(ePoint(int(x), int(y)))
class ConditionalWidget(Widget):
def __init__(self, withTimer = True):
if (withTimer):
self.conditionCheckTimer = eTimer()
self.conditionCheckTimer.timeout.get().append(self.update)
- self.conditionCheckTimer.start(500)
+ self.conditionCheckTimer.start(1000)
def setConnect(self, conditionalFunction):
self.conditionalFunction = conditionalFunction