def loadPreButtonClick(self, e): lst = ["Constant", "Ramp", "Sine"] dlg = wx.SingleChoiceDialog( self, "Pick a Preset", "Load Presets", lst) if (dlg.ShowModal() == wx.ID_OK): select = dlg.GetSelection() gh.gridPreset(self.inputGrid, select) dlg.Destroy()
def loadPreButtonClick(self, e): lst = ["Constant", "Ramp", "Sine"] dlg = wx.SingleChoiceDialog(self, "Pick a Preset", "Load Presets", lst) if (dlg.ShowModal() == wx.ID_OK): select = dlg.GetSelection() gh.gridPreset(self.inputGrid, select) dlg.Destroy()
def setupFile(val): file = h.findFileName() h.setFileName(file) gh.setDataFileName(file)
def plotLastButtonClick(self, evt): gh.plotGraph(self.figure) self.canvas.draw()
def runComButtonClick(self, e): move = gh.setupMoveq(self.inputGrid) dispatcher.dispatch(Message('imu_samples', move)) dispatcher.dispatch(Message('run_commands',[self.addr, move]))
def runComButtonClick(self, e): move = gh.setupMoveq(self.inputGrid) dispatcher.dispatch(Message('imu_samples', move)) dispatcher.dispatch(Message('run_commands', [self.addr, move]))