Python wx.RA_SPECIFY_COLS Examples
The following are 14
code examples of wx.RA_SPECIFY_COLS().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
wx
, or try the search function
.
Example #1
Source File: outlier_frame_extraction_toolbox.py From DeepLabCut with GNU Lesser General Public License v3.0 | 6 votes |
def addRadioButtons(self): """ Adds radio buttons for each bodypart on the right panel """ self.choiceBox = wx.BoxSizer(wx.VERTICAL) names = ["Color individuals", "Color bodyparts"] self.visualization_radiobox = wx.RadioBox( self, label="Select the visualization scheme", majorDimension=1, style=wx.RA_SPECIFY_COLS, choices=names, ) self.choiceBox.Add(self.visualization_radiobox, 0, wx.EXPAND | wx.ALL, 10) self.SetSizerAndFit(self.choiceBox) self.Layout() return (self.choiceBox, self.visualization_radiobox)
Example #2
Source File: radio_box.py From wxGlade with MIT License | 6 votes |
def __init__(self, name, parent, index, style, label, choices, major_dim): "Class to handle wxRadioBox objects" ManagedBase.__init__(self, name, parent, index) self.static_box = None # initialise instance properties self.label = np.TextProperty("", multiline="grow") self.dimension = np.SpinProperty(major_dim) self.selection = np.SpinProperty(0, val_range=(0,len(choices)-1), immediate=True ) self.choices = ChoicesProperty( choices, [(_('Label'), np.GridProperty.STRING)] ) style = style or wx.RA_SPECIFY_ROWS styles = [wx.RA_SPECIFY_ROWS, wx.RA_SPECIFY_COLS] aliases = ["wxRA_SPECIFY_ROWS","wxRA_SPECIFY_COLS"] # labels and aliases self.style = np.RadioProperty(style, styles, aliases, aliases=aliases, columns=2) self.buttons = None # list of wx.RadioButton # widget creation / updates ########################################################################################
Example #3
Source File: absolutespage.py From magpy with BSD 3-Clause "New" or "Revised" License | 5 votes |
def createControls(self): self.sourceLabel = wx.StaticText(self, label="Data source:") self.diLabel = wx.StaticText(self, label="Actions:") self.loadDIButton = wx.Button(self,-1,"DI data",size=(160,30)) self.diSourceLabel = wx.StaticText(self, label="Source: None") self.diTextCtrl = wx.TextCtrl(self, value="None",size=(160,40), style = wx.TE_MULTILINE|wx.TE_READONLY|wx.HSCROLL|wx.VSCROLL) self.defineVarioScalarButton = wx.Button(self,-1,"Vario/Scalar",size=(160,30)) self.VarioSourceLabel = wx.StaticText(self, label="Vario: None") self.ScalarSourceLabel = wx.StaticText(self, label="Scalar: None") self.varioTextCtrl = wx.TextCtrl(self, value="None",size=(160,40), style = wx.TE_MULTILINE|wx.TE_READONLY|wx.HSCROLL|wx.VSCROLL) self.defineParameterButton = wx.Button(self,-1,"Analysis parameter",size=(160,30)) self.parameterRadioBox = wx.RadioBox(self,label="parameter source",choices=self.choices, majorDimension=2, style=wx.RA_SPECIFY_COLS,size=(160,50)) #self.parameterTextCtrl = wx.TextCtrl(self, value="Default",size=(160,30), # style = wx.TE_MULTILINE|wx.TE_READONLY|wx.HSCROLL|wx.VSCROLL) self.scalarTextCtrl = wx.TextCtrl(self, value="None",size=(160,40), style = wx.TE_MULTILINE|wx.TE_READONLY|wx.HSCROLL|wx.VSCROLL) self.AnalyzeButton = wx.Button(self,-1,"Analyze",size=(160,30)) self.logLabel = wx.StaticText(self, label="Logging:") #self.exportButton = wx.Button(self,-1,"Export...",size=(160,30)) self.ClearLogButton = wx.Button(self,-1,"Clear Log",size=(160,30)) self.SaveLogButton = wx.Button(self,-1,"Save Log",size=(160,30)) self.dilogTextCtrl = wx.TextCtrl(self, wx.ID_ANY, size=(330,200), style = wx.TE_MULTILINE|wx.TE_READONLY|wx.HSCROLL|wx.VSCROLL) #self.varioExtComboBox = wx.ComboBox(self, choices=self.varioext, # style=wx.CB_DROPDOWN, value=self.varioext[0],size=(160,-1)) #self.scalarExtComboBox = wx.ComboBox(self, choices=self.scalarext, # style=wx.CB_DROPDOWN, value=self.scalarext[0],size=(160,-1))
Example #4
Source File: developpage.py From magpy with BSD 3-Clause "New" or "Revised" License | 5 votes |
def createControls(self): # single anaylsis self.flagLabel = wx.StaticText(self, label="Add a flag to a single date") self.flagsRadioBox = wx.RadioBox(self, label="Select flag", choices=self.choices, majorDimension=2, style=wx.RA_SPECIFY_COLS) self.commentText = wx.TextCtrl(self, style=wx.TE_MULTILINE|wx.TE_READONLY) self.okButton = wx.Button(self, label='Ok') self.closeButton = wx.Button(self, label='Close')
Example #5
Source File: multiple_individuals_refinement_toolbox.py From DeepLabCut with GNU Lesser General Public License v3.0 | 5 votes |
def addCheckBoxSlider(self, bodyparts, fileIndex, markersize): """ Adds checkbox and a slider """ self.choiceBox = wx.BoxSizer(wx.VERTICAL) self.slider = wx.Slider( self, -1, markersize, 1, markersize * 3, size=(250, -1), style=wx.SL_HORIZONTAL | wx.SL_AUTOTICKS | wx.SL_LABELS, ) self.slider.Enable(False) self.checkBox = wx.CheckBox(self, id=wx.ID_ANY, label="Adjust marker size.") self.choiceBox.Add(self.slider, 0, wx.ALL, 5) self.choiceBox.Add(self.checkBox, 0, wx.ALL, 5) names = ["Color individuals", "Color bodyparts"] self.visualization_radiobox = wx.RadioBox( self, label="Select the visualization scheme", majorDimension=1, style=wx.RA_SPECIFY_COLS, choices=names, ) self.choiceBox.Add(self.visualization_radiobox, 0, wx.EXPAND | wx.ALL, 10) self.SetSizerAndFit(self.choiceBox) self.Layout() return (self.choiceBox, self.slider, self.checkBox, self.visualization_radiobox)
Example #6
Source File: dialogs.py From wxGlade with MIT License | 5 votes |
def __init__(self, dlg_title, box_label, choices, options=None, defaults=None): """Initialise the dialog and draw the content dlg_title: Dialog title box_label: Label of the draw around the listed choices choices: Choices to select one (string list)""" pos = wx.GetMousePosition() wx.Dialog.__init__(self, None, -1, dlg_title, pos) szr = wx.BoxSizer(wx.VERTICAL) self.box = wx.RadioBox( self, wx.ID_ANY, box_label, wx.DefaultPosition, wx.DefaultSize,choices.split('|'), 1, style=wx.RA_SPECIFY_COLS ) self.box.SetSelection(0) szr.Add(self.box, 5, wx.ALL | wx.EXPAND, 10) if options: self.options = [] for o, option in enumerate(options): cb = wx.CheckBox(self, -1, option) cb.SetValue(defaults and defaults[o]) szr.Add(cb, 0, wx.ALL, 10) self.options.append(cb) # buttons btnbox = wx.StdDialogButtonSizer() btnOK = wx.Button(self, wx.ID_OK) btnOK.SetDefault() btnCANCEL = wx.Button(self, wx.ID_CANCEL) btnbox.AddButton(btnOK) btnbox.AddButton(btnCANCEL) btnbox.Realize() szr.Add(btnbox, 0, wx.ALL|wx.ALIGN_CENTER, 5) self.SetAutoLayout(True) self.SetSizer(szr) szr.Fit(self)
Example #7
Source File: new_properties.py From wxGlade with MIT License | 5 votes |
def create_editor(self, panel, sizer): label = self._find_label() style = wx.RA_SPECIFY_COLS | wx.NO_BORDER | wx.CLIP_CHILDREN self.options = wx.RadioBox(panel, -1, label, choices=self.labels, majorDimension=self.columns, style=style) sizer.Add(self.options, 0, wx.EXPAND) if self.tooltips: for i,tooltip in enumerate(self.tooltips): if tooltip: self.options.SetItemToolTip(i, tooltip) else: self._set_tooltip(self.options) self.update_display(True) self.options.Bind(wx.EVT_RADIOBOX, self.on_radio)
Example #8
Source File: radio_box.py From wxGlade with MIT License | 5 votes |
def _do_layout(self): "Lays out the radio buttons according to the values of self.style and self.major_dim" if not self.widget: return buttons_layout = self.buttons if self.dimension: if self.style & wx.RA_SPECIFY_COLS: cols = self.dimension rows = 0 else: cols = 0 rows = self.dimension sizer = wx.GridSizer(rows, cols, 0, 0) if wx.Platform == '__WXGTK__': # we need to reorder self.buttons 'cos wxRadioBox lays out its # elements by colums, while wxGridSizer by rows import math if not rows: step = int(math.ceil(1.0*len(self.buttons)/cols)) else: step = rows tmp = [[] for i in range(step)] for i, button in enumerate(self.buttons): tmp[i%step].append(button) buttons_layout = [] for t in tmp: buttons_layout.extend(t) else: sizer = wx.BoxSizer(wx.VERTICAL) for button in buttons_layout: w, h = button.GetBestSize() sizer.Add(button, 0, wx.EXPAND) sizer.SetItemMinSize(button, w, h) self.widget.SetAutoLayout(True) sb_sizer = wx.StaticBoxSizer(self.static_box, wx.VERTICAL) self.widget.SetSizer(sb_sizer) sb_sizer.Add(sizer, 1, wx.EXPAND) sb_sizer.SetMinSize(sizer.GetMinSize()) sb_sizer.Fit(self.widget) if hasattr(self.parent, "set_item_best_size"): self.parent.set_item_best_size(self, size=self.widget.GetBestSize())
Example #9
Source File: RadioBox.py From EventGhost with GNU General Public License v2.0 | 5 votes |
def __init__( self, parent = None, id = -1, label = "", pos = (-1, -1), size = (-1, -1), choices = (), majorDimension = 0, style = wx.RA_SPECIFY_COLS, validator = wx.DefaultValidator, name = "radioBox" ): self.value = 0 wx.Panel.__init__(self, parent, id, pos, size, name=name) sizer = self.sizer = wx.GridSizer(len(choices), 1, 6, 6) style = wx.RB_GROUP for i, choice in enumerate(choices): radioButton = wx.RadioButton(self, i, choice, style=style) style = 0 self.sizer.Add(radioButton, 0, wx.EXPAND) radioButton.Bind(wx.EVT_RADIOBUTTON, self.OnSelect) self.SetSizer(sizer) self.SetAutoLayout(True) sizer.Fit(self) self.Layout() self.SetMinSize(self.GetSize()) self.Bind(wx.EVT_SIZE, self.OnSize)
Example #10
Source File: cfgdlg.py From trelby with GNU General Public License v2.0 | 4 votes |
def __init__(self, parent, id, cfg): wx.Panel.__init__(self, parent, id) self.cfg = cfg vsizer = wx.BoxSizer(wx.VERTICAL) vsizer.Add(wx.StaticText(self, -1, "Screen fonts:")) self.fontsLb = wx.ListBox(self, -1, size = (300, 100)) for it in ["fontNormal", "fontBold", "fontItalic", "fontBoldItalic"]: self.fontsLb.Append("", it) vsizer.Add(self.fontsLb, 0, wx.BOTTOM, 10) hsizer = wx.BoxSizer(wx.HORIZONTAL) btn = wx.Button(self, -1, "Change") wx.EVT_LISTBOX_DCLICK(self, self.fontsLb.GetId(), self.OnChangeFont) wx.EVT_BUTTON(self, btn.GetId(), self.OnChangeFont) self.errText = wx.StaticText(self, -1, "") self.origColor = self.errText.GetForegroundColour() hsizer.Add(btn) hsizer.Add((20, -1)) hsizer.Add(self.errText, 0, wx.ALIGN_CENTER_VERTICAL) vsizer.Add(hsizer, 0, wx.BOTTOM, 20) vsizer.Add(wx.StaticText(self, -1, "The settings below apply only" " to 'Draft' view mode."), 0, wx.BOTTOM, 15) hsizer = wx.BoxSizer(wx.HORIZONTAL) hsizer.Add(wx.StaticText(self, -1, "Row spacing:"), 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 10) self.spacingEntry = wx.SpinCtrl(self, -1) self.spacingEntry.SetRange(*self.cfg.cvars.getMinMax("fontYdelta")) wx.EVT_SPINCTRL(self, self.spacingEntry.GetId(), self.OnMisc) wx.EVT_KILL_FOCUS(self.spacingEntry, self.OnKillFocus) hsizer.Add(self.spacingEntry, 0) hsizer.Add(wx.StaticText(self, -1, "pixels"), 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT, 10) vsizer.Add(hsizer, 0, wx.EXPAND | wx.BOTTOM, 15) self.pbRb = wx.RadioBox(self, -1, "Page break lines to show", style = wx.RA_SPECIFY_COLS, majorDimension = 1, choices = [ "None", "Normal", "Normal + unadjusted " ]) vsizer.Add(self.pbRb) self.fontsLb.SetSelection(0) self.updateFontLb() self.cfg2gui() util.finishWindow(self, vsizer, center = False) wx.EVT_RADIOBOX(self, self.pbRb.GetId(), self.OnMisc)
Example #11
Source File: streampage.py From magpy with BSD 3-Clause "New" or "Revised" License | 4 votes |
def createControls(self): self.lineLabel1 = wx.StaticText(self, label=" ") self.lineLabel2 = wx.StaticText(self, label=" ") self.lineLabel3 = wx.StaticText(self, label=" ") self.lineLabel4 = wx.StaticText(self, label=" ") self.pathLabel = wx.StaticText(self, label="Path/Source:") self.pathTextCtrl = wx.TextCtrl(self, value="") self.fileLabel = wx.StaticText(self, label="File/Table:") self.fileTextCtrl = wx.TextCtrl(self, value="*") self.startdateLabel = wx.StaticText(self, label="Start date:") self.startDatePicker = wxDatePickerCtrl(self, style=wxDP_DEFAULT) # the following line produces error in my win xp installation self.startTimePicker = wx.TextCtrl(self, value="00:00:00") self.enddateLabel = wx.StaticText(self, label="End date:") self.endDatePicker = wxDatePickerCtrl(self, style=wxDP_DEFAULT) self.endTimePicker = wx.TextCtrl(self, value=datetime.now().strftime('%X')) self.trimStreamButton = wx.Button(self,-1,"Trim timerange",size=(160,30)) self.plotOptionsLabel = wx.StaticText(self, label="Plotting options:") #self.flagOptionsLabel = wx.StaticText(self, label="Flagging methods:") self.selectKeysButton = wx.Button(self,-1,"Select Columns",size=(160,30)) self.dropKeysButton = wx.Button(self,-1,"Drop Columns",size=(160,30)) self.extractValuesButton = wx.Button(self,-1,"Extract Values",size=(160,30)) self.restoreButton = wx.Button(self,-1,"Restore data",size=(160,30)) self.changePlotButton = wx.Button(self,-1,"Plot Options",size=(160,30)) self.dailyMeansButton = wx.Button(self,-1,"Daily Means",size=(160,30)) self.applyBCButton = wx.Button(self,-1,"Baseline Corr",size=(160,30)) self.getGapsButton = wx.Button(self,-1,"Get gaps",size=(160,30)) #self.flagOutlierButton = wx.Button(self,-1,"Flag Outlier",size=(160,30)) #self.flagRangeButton = wx.Button(self,-1,"Flag Range",size=(160,30)) #self.flagMinButton = wx.Button(self,-1,"Flag Minimum",size=(160,30)) #self.flagMaxButton = wx.Button(self,-1,"Flag Maximum",size=(160,30)) #self.xCheckBox = wx.CheckBox(self,label="X ") #self.yCheckBox = wx.CheckBox(self,label="Y ") #self.zCheckBox = wx.CheckBox(self,label="Z ") #self.fCheckBox = wx.CheckBox(self,label="F ") #self.FlagIDText = wx.StaticText(self,label="Select Min/Max Flag ID:") #self.FlagIDComboBox = wx.ComboBox(self, choices=self.flagidlist, # style=wx.CB_DROPDOWN, value=self.flagidlist[3],size=(160,-1)) #self.flagSelectionButton = wx.Button(self,-1,"Flag Selection",size=(160,30)) #self.flagDropButton = wx.Button(self,-1,"Drop flagged",size=(160,30)) #self.flagLoadButton = wx.Button(self,-1,"Load flags",size=(160,30)) #self.flagSaveButton = wx.Button(self,-1,"Save flags",size=(160,30)) #self.flagClearButton = wx.Button(self,-1,"Clear flags",size=(160,30)) self.compRadioBox = wx.RadioBox(self, label="Select components", choices=self.comp, majorDimension=3, style=wx.RA_SPECIFY_COLS) self.symbolRadioBox = wx.RadioBox(self, label="Select symbols", choices=self.symbol, majorDimension=2, style=wx.RA_SPECIFY_COLS) self.annotateCheckBox = wx.CheckBox(self,label="annotate") self.errorBarsCheckBox = wx.CheckBox(self,label="error bars") self.confinexCheckBox = wx.CheckBox(self, label="confine time") self.compRadioBox.Disable() self.symbolRadioBox.Disable() #self.dailyMeansButton.SetFont(wx.Font(14, wx.SWISS, wx.NORMAL, wx.NORMAL))
Example #12
Source File: developpage.py From magpy with BSD 3-Clause "New" or "Revised" License | 4 votes |
def createControls(self): self.DrawButton = wx.Button(self,-1,"Draw/Recalc") self.SaveVarioButton = wx.Button(self,-1,"Save data") self.dateLabel = wx.StaticText(self, label="Insert time range:") self.startdateLabel = wx.StaticText(self, label="Start date:") self.startDatePicker = wx.DatePickerCtrl(self, dt=wx.DateTimeFromTimeT(time.mktime(datetime.strptime("2011-10-22","%Y-%m-%d").timetuple()))) self.enddateLabel = wx.StaticText(self, label="End date:") self.endDatePicker = wx.DatePickerCtrl(self, dt=wx.DateTimeFromTimeT(time.mktime(datetime.strptime("2011-10-22","%Y-%m-%d").timetuple()))) self.instLabel = wx.StaticText(self, label="Select variometer:") self.resolutionLabel = wx.StaticText(self, label="Select resolution:") self.scalarLabel = wx.StaticText(self, label="Select F source:") self.scalarReviewedLabel = wx.StaticText(self, label="only reviewed!") self.varioComboBox = wx.ComboBox(self, choices=self.varios, style=wx.CB_DROPDOWN, value=self.varios[0]) self.overrideAutoBaselineButton = wx.Button(self,-1,"Manual base.") self.baselinefileTextCtrl = wx.TextCtrl(self, value="--") self.baselinefileTextCtrl.Disable() self.scalarComboBox = wx.ComboBox(self, choices=self.scalars, style=wx.CB_DROPDOWN, value=self.scalars[0]) self.resolutionComboBox = wx.ComboBox(self, choices=self.resolution, style=wx.CB_DROPDOWN, value=self.resolution[0]) self.datatypeLabel = wx.StaticText(self, label="Select datatype:") self.datatypeComboBox = wx.ComboBox(self, choices=self.datatype, style=wx.CB_DROPDOWN, value=self.datatype[1]) self.drawRadioBox = wx.RadioBox(self, label="Select vector components", choices=self.comp, majorDimension=3, style=wx.RA_SPECIFY_COLS) self.addoptLabel = wx.StaticText(self, label="Optional graphs:") self.baselinecorrCheckBox = wx.CheckBox(self,label="Baseline corr.") self.fCheckBox = wx.CheckBox(self,label="Plot F") self.dfCheckBox = wx.CheckBox(self,label="calculate dF") self.dfCheckBox.Disable() self.tCheckBox = wx.CheckBox(self,label="Plot T") self.showFlaggedCheckBox = wx.CheckBox(self, label="show flagged") self.curdateTextCtrl = wx.TextCtrl(self, value="--") self.curdateTextCtrl.Disable() self.prevdateTextCtrl = wx.TextCtrl(self, value="--") self.prevdateTextCtrl.Disable() self.GetGraphMarksButton = wx.Button(self,-1,"Get marks") self.flagSingleButton = wx.Button(self,-1,"Flag date") self.flagRangeButton = wx.Button(self,-1,"Flag range") self.curselecteddateLabel = wx.StaticText(self, label="Current sel.") self.prevselecteddateLabel = wx.StaticText(self, label="Previous sel.") self.dfIniTextCtrl = wx.TextCtrl(self, value="dF(ini): 0 nT") self.dfCurTextCtrl = wx.TextCtrl(self, value="dF(cur): --") self.dfIniTextCtrl.Disable() self.dfCurTextCtrl.Disable()
Example #13
Source File: multiple_individuals_labeling_toolbox.py From DeepLabCut with GNU Lesser General Public License v3.0 | 4 votes |
def addRadioButtons(self, bodyparts, individual_names, fileIndex, markersize): """ Adds radio buttons for each bodypart on the right panel """ self.choiceBox = wx.BoxSizer(wx.VERTICAL) choices = [l for l in bodyparts] self.fieldradiobox = wx.RadioBox( self, label="Select a bodypart to label", majorDimension=3, style=wx.RA_SPECIFY_COLS, choices=choices, ) self.change_marker = wx.Slider( self, -1, markersize, 1, markersize * 3, size=(250, -1), style=wx.SL_HORIZONTAL | wx.SL_AUTOTICKS | wx.SL_LABELS, ) self.change_marker.Enable(False) names = [k for k in individual_names] self.individualradiobox = wx.RadioBox( self, label="Select an individual", majorDimension=3, style=wx.RA_SPECIFY_COLS, choices=names, ) self.checkBox = wx.CheckBox(self, id=wx.ID_ANY, label="Adjust marker size") self.choiceBox.Add(self.change_marker, 0, wx.ALL, 5) self.choiceBox.Add(self.checkBox, 0, wx.ALL, 5) self.choiceBox.Add(self.individualradiobox, 0, wx.EXPAND | wx.ALL, 10) self.choiceBox.Add(self.fieldradiobox, 0, wx.EXPAND | wx.ALL, 10) self.SetSizerAndFit(self.choiceBox) self.Layout() return ( self.choiceBox, self.individualradiobox, self.fieldradiobox, self.change_marker, self.checkBox, )
Example #14
Source File: ToolsDialog.py From wxGlade with MIT License | 4 votes |
def __init__(self, *args, **kwds): # begin wxGlade: ToolsDialog.__init__ kwds["style"] = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER wx.Dialog.__init__(self, *args, **kwds) self.label = wx.TextCtrl(self, wx.ID_ANY, "") self.primary_bitmap = wx.TextCtrl(self, wx.ID_ANY, "") self.primary_bitmap_button = wx.Button(self, wx.ID_ANY, "...") self.disabled_bitmap = wx.TextCtrl(self, wx.ID_ANY, "") self.disabled_bitmap_button = wx.Button(self, wx.ID_ANY, "...") self.event_handler = wx.TextCtrl(self, wx.ID_ANY, "") self.name = wx.TextCtrl(self, wx.ID_ANY, "") self.help_str = wx.TextCtrl(self, wx.ID_ANY, "") self.id = wx.TextCtrl(self, wx.ID_ANY, "") self.check_radio = wx.RadioBox(self, wx.ID_ANY, "Type", choices=["Normal", "Checkable", "Radio"], majorDimension=1, style=wx.RA_SPECIFY_COLS) self.ok = wx.Button(self, wx.ID_OK, "") self.cancel = wx.Button(self, wx.ID_CANCEL, "") self.move_up = wx.Button(self, wx.ID_ANY, "Up") self.move_down = wx.Button(self, wx.ID_ANY, "Down") self.add = wx.Button(self, wx.ID_ANY, "&Add") self.remove = wx.Button(self, wx.ID_ANY, "&Remove") self.add_sep = wx.Button(self, wx.ID_ANY, "Add Separator") self.items = wx.ListCtrl(self, wx.ID_ANY, style=wx.BORDER_DEFAULT | wx.BORDER_SUNKEN | wx.LC_EDIT_LABELS | wx.LC_REPORT | wx.LC_SINGLE_SEL) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_TEXT, self.update_item, self.label) self.Bind(wx.EVT_TEXT, self.update_item, self.primary_bitmap) self.Bind(wx.EVT_BUTTON, self.move_item_up, self.primary_bitmap_button) self.Bind(wx.EVT_TEXT, self.update_item, self.disabled_bitmap) self.Bind(wx.EVT_BUTTON, self.move_item_up, self.disabled_bitmap_button) self.Bind(wx.EVT_TEXT, self.update_item, self.event_handler) self.Bind(wx.EVT_TEXT, self.update_item, self.name) self.Bind(wx.EVT_TEXT, self.update_item, self.help_str) self.Bind(wx.EVT_TEXT, self.update_item, self.id) self.Bind(wx.EVT_RADIOBOX, self.update_item, self.check_radio) self.Bind(wx.EVT_BUTTON, self.move_item_up, self.move_up) self.Bind(wx.EVT_BUTTON, self.move_item_down, self.move_down) self.Bind(wx.EVT_BUTTON, self.add_item, self.add) self.Bind(wx.EVT_BUTTON, self.remove_item, self.remove) self.Bind(wx.EVT_BUTTON, self.add_separator, self.add_sep) self.Bind(wx.EVT_LIST_END_LABEL_EDIT, self.on_label_edited, self.items) self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.show_item, self.items) # end wxGlade