当前位置: 首页>>代码示例>>Python>>正文


Python wx.RA_SPECIFY_COLS属性代码示例

本文整理汇总了Python中wx.RA_SPECIFY_COLS属性的典型用法代码示例。如果您正苦于以下问题:Python wx.RA_SPECIFY_COLS属性的具体用法?Python wx.RA_SPECIFY_COLS怎么用?Python wx.RA_SPECIFY_COLS使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在wx的用法示例。


在下文中一共展示了wx.RA_SPECIFY_COLS属性的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: addRadioButtons

# 需要导入模块: import wx [as 别名]
# 或者: from wx import RA_SPECIFY_COLS [as 别名]
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) 
开发者ID:DeepLabCut,项目名称:DeepLabCut,代码行数:20,代码来源:outlier_frame_extraction_toolbox.py

示例2: __init__

# 需要导入模块: import wx [as 别名]
# 或者: from wx import RA_SPECIFY_COLS [as 别名]
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 ######################################################################################## 
开发者ID:wxGlade,项目名称:wxGlade,代码行数:20,代码来源:radio_box.py

示例3: createControls

# 需要导入模块: import wx [as 别名]
# 或者: from wx import RA_SPECIFY_COLS [as 别名]
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)) 
开发者ID:geomagpy,项目名称:magpy,代码行数:31,代码来源:absolutespage.py

示例4: createControls

# 需要导入模块: import wx [as 别名]
# 或者: from wx import RA_SPECIFY_COLS [as 别名]
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') 
开发者ID:geomagpy,项目名称:magpy,代码行数:11,代码来源:developpage.py

示例5: addCheckBoxSlider

# 需要导入模块: import wx [as 别名]
# 或者: from wx import RA_SPECIFY_COLS [as 别名]
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) 
开发者ID:DeepLabCut,项目名称:DeepLabCut,代码行数:34,代码来源:multiple_individuals_refinement_toolbox.py

示例6: __init__

# 需要导入模块: import wx [as 别名]
# 或者: from wx import RA_SPECIFY_COLS [as 别名]
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) 
开发者ID:wxGlade,项目名称:wxGlade,代码行数:39,代码来源:dialogs.py

示例7: create_editor

# 需要导入模块: import wx [as 别名]
# 或者: from wx import RA_SPECIFY_COLS [as 别名]
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) 
开发者ID:wxGlade,项目名称:wxGlade,代码行数:17,代码来源:new_properties.py

示例8: _do_layout

# 需要导入模块: import wx [as 别名]
# 或者: from wx import RA_SPECIFY_COLS [as 别名]
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()) 
开发者ID:wxGlade,项目名称:wxGlade,代码行数:43,代码来源:radio_box.py

示例9: __init__

# 需要导入模块: import wx [as 别名]
# 或者: from wx import RA_SPECIFY_COLS [as 别名]
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) 
开发者ID:EventGhost,项目名称:EventGhost,代码行数:31,代码来源:RadioBox.py

示例10: __init__

# 需要导入模块: import wx [as 别名]
# 或者: from wx import RA_SPECIFY_COLS [as 别名]
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) 
开发者ID:trelby,项目名称:trelby,代码行数:63,代码来源:cfgdlg.py

示例11: createControls

# 需要导入模块: import wx [as 别名]
# 或者: from wx import RA_SPECIFY_COLS [as 别名]
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)) 
开发者ID:geomagpy,项目名称:magpy,代码行数:59,代码来源:streampage.py

示例12: addRadioButtons

# 需要导入模块: import wx [as 别名]
# 或者: from wx import RA_SPECIFY_COLS [as 别名]
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,
        ) 
开发者ID:DeepLabCut,项目名称:DeepLabCut,代码行数:49,代码来源:multiple_individuals_labeling_toolbox.py

示例13: __init__

# 需要导入模块: import wx [as 别名]
# 或者: from wx import RA_SPECIFY_COLS [as 别名]
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 
开发者ID:wxGlade,项目名称:wxGlade,代码行数:46,代码来源:ToolsDialog.py


注:本文中的wx.RA_SPECIFY_COLS属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。