def createWidgets (self): Inter.createWidgets (self) self.ArggButton = Button (self.rightFrame, text = 'Argggg!', command = self.emergency_stop) self.ArggButton.pack () self.actionVar = StringVar () self.actionVar.set ('goto') self.actionSetPosButton = Radiobutton (self.rightFrame, text = 'set pos', value = 'set_pos', variable = self.actionVar) self.actionSetPosButton.pack () self.actionGotoButton = Radiobutton (self.rightFrame, text = 'goto', value = 'goto', variable = self.actionVar) self.actionGotoButton.pack () self.backwardVar = IntVar () self.backwardButton = Checkbutton (self.rightFrame, text = 'backward', variable = self.backwardVar) self.backwardButton.pack () self.revertokVar = IntVar () self.revertokButton = Checkbutton (self.rightFrame, text = 'revert ok', variable = self.revertokVar) self.revertokButton.pack () self.ftwButton = Button (self.rightFrame, text = 'FTW', command = self.ftw) self.ftwButton.pack () self.tableview.configure (cursor = 'crosshair') self.tableview.bind ('<1>', self.button1) self.tableview.bind ('<3>', self.button3)
def __init__ (self): # Asserv. self.a = init_proto ('giboulee', asserv.Proto, asserv.init) self.a.async = True # Inter. Inter.__init__ (self) self.tk.createfilehandler (self.a, READABLE, self.read) self.timeout () # Query position. self.a.register_pos (interval = 225 / 20) self.a.position.register (self.pos)