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()