Beispiel #1
0
 def getHeight(self):
     self.height = None
     def operation():
         width, height = self.win.get_size()
         self.height = height
     GUI.doOperation(operation)
     while self.height is None:
         sleep(0)
     return self.height
Beispiel #2
0
 def getY(self):
     self.yPos = None
     def operation():
         x, y = self.win.get_position()
         self.yPos = y
     GUI.doOperation(operation)
     while self.yPos is None:
         sleep(0)
     return self.yPos
Beispiel #3
0
 def getWidth(self):
     self.width = None
     def operation():
         width, height = self.win.get_size()
         self.width = width
     GUI.doOperation(operation)
     while self.width is None:
         sleep(0)
     return self.width
Beispiel #4
0
 def setMessage(self, message):
     def operation():
         self.message = message
         self.canvas.queue_draw()
     GUI.doOperation(operation)
Beispiel #5
0
 def setLampColor(self, color):
     def operation():
         self.iluminationColor = self.colors[color]
         self.canvas.queue_draw()
     GUI.doOperation(operation)
Beispiel #6
0
 def setLampColorAndMessage(self, message, color):
     def operation():
         self.message = message
         self.iluminationColor = self.colors[color]
         self.canvas.queue_draw()
     GUI.doOperation(operation)
Beispiel #7
0
 def close(self):
     def operation():
         self.win.destroy()
     GUI.doOperation(operation)
     
Beispiel #8
0
 def __init__(self, message, xPos, yPos, initColor=0):
     GUI.start()
     GUI.doOperation(Indicator.createWidgets, self , message, xPos, yPos, initColor)        
 def __init__(self, title, xPos, yPos):
     GUI.start()
     GUI.doOperation(self.createWidgets, title, xPos, yPos)