def createUIoptions(self, list): for option in list: if option == "LERoption": self.UIoptions.append((""" label = wx.StaticText(self, -1, "LER option:") control = wx.Choice(self, -1, choices = ["LERa", "LERb", "LERab"]) control.SetStringSelection("%s")""" % (self.LERoption), "GetStringSelection()", "LERoption")) list.remove(option) MethodPlugin.createUIoptions(self, list)
def createUIoptions(self, list): for option in list: if option == "LERoption": self.UIoptions.append( (""" label = wx.StaticText(self, -1, "LER option:") control = wx.Choice(self, -1, choices = ["LERa", "LERb", "LERab"]) control.SetStringSelection("%s")""" % (self.LERoption), "GetStringSelection()", "LERoption") ) list.remove(option) MethodPlugin.createUIoptions(self,list)
def createUIoptions(self, list): for option in list: if option == "thresh0": list.remove(option) elif option == "thresh1": list.remove(option) elif option == "thresh2": list.remove(option) elif option == "countingMethod": self.UIoptions.append( (""" label = wx.StaticText(self, -1, "Counting Method:") control = wx.Choice(self, -1, choices = ["Meek", "Warren"]) control.SetStringSelection("%s")""" % (self.countingMethod), "GetStringSelection()", "countingMethod") ) list.remove(option) MethodPlugin.createUIoptions(self,list)
def createUIoptions(self, list): for option in list: if option == "thresh0": list.remove(option) elif option == "thresh1": list.remove(option) elif option == "thresh2": list.remove(option) elif option == "countingMethod": self.UIoptions.append( (""" label = wx.StaticText(self, -1, "Counting Method:") control = wx.Choice(self, -1, choices = ["Meek", "Warren"]) control.SetStringSelection("%s")""" % (self.countingMethod), "GetStringSelection()", "countingMethod")) list.remove(option) MethodPlugin.createUIoptions(self, list)