예제 #1
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.editors['DefaultFilter'] = IntConstrPropEdit
     self.windowStyles = ['wx.DIRCTRL_DIR_ONLY', 'wx.DIRCTRL_SELECT_FIRST',
           'wx.DIRCTRL_SHOW_FILTERS', 'wx.DIRCTRL_3D_INTERNAL',
           'wx.DIRCTRL_EDIT_LABELS'] + self.windowStyles
     self.compositeCtrl = True
예제 #2
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.windowStyles = [
         'wx.richtext.RE_MULTILINE',
         'wx.richtext.RE_READONLY',
     ] + self.windowStyles
     self.editors['Editable'] = BoolPropEdit
예제 #3
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.windowStyles = [
         'wx.CB_READONLY', 'wx.CB_SORT', 'wx.TE_PROCESS_ENTER',
         'wx.combo.CC_SPECIAL_DCLICK', 'wx.combo.CC_STD_BUTTON'
     ] + self.windowStyles
     self.ctrlDisabled = True
예제 #4
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.windowStyles = [
         'wx.SP_HORIZONTAL', 'wx.SP_VERTICAL', 'wx.SP_ARROW_KEYS',
         'wx.SP_WRAP'
     ] + self.windowStyles
     self.customPropEvaluators['Range'] = self.EvalRange
예제 #5
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.editors['Default'] = BoolPropEdit
     self.editors['Id'] = ButtonIdConstrPropEdit
     self.windowStyles = ['wx.BU_LEFT', 'wx.BU_TOP', 'wx.BU_RIGHT',
                          'wx.BU_BOTTOM', 'wx.BU_EXACTFIT'] + self.windowStyles
     self.customPropEvaluators['Default'] = self.EvalDefault
예제 #6
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.editors.update({
         'Columns':
         ListColumnsColPropEdit,
         'ImageListSmall':
         ListCtrlImageListClassLinkPropEdit,
         'ImageListNormal':
         ListCtrlImageListClassLinkPropEdit
     })
     self.windowStyles = [
         'wx.LC_LIST', 'wx.LC_REPORT', 'wx.LC_VIRTUAL', 'wx.LC_ICON',
         'wx.LC_SMALL_ICON', 'wx.LC_ALIGN_TOP', 'wx.LC_ALIGN_LEFT',
         'wx.LC_AUTOARRANGE', 'wx.LC_USER_TEXT', 'wx.LC_EDIT_LABELS',
         'wx.LC_NO_HEADER', 'wx.LC_SINGLE_SEL', 'wx.LC_SORT_ASCENDING',
         'wx.LC_SORT_DESCENDING', 'wx.LC_HRULES', 'wx.LC_VRULES'
     ] + self.windowStyles
     self.subCompanions['Columns'] = ListCtrlColumnsCDTC
     self.listTypeNameMap = {
         'ImageListSmall': wx.IMAGE_LIST_SMALL,
         'ImageListNormal': wx.IMAGE_LIST_NORMAL
     }
     for name in self.listTypeNameMap.keys():
         self.customPropEvaluators[name] = self.EvalImageList
     self.customPropEvaluators['ImageList'] = self.EvalImageList
예제 #7
0
    def __init__(self, name, designer, parent, ctrlClass):
        WindowDTC.__init__(self, name, designer, parent, ctrlClass)
        self.editors.update(
            {'BackSpaceUnIndents': BoolPropEdit,
             'BufferedDraw': BoolPropEdit,
             'CaretLineVisible': BoolPropEdit,
             'EndAtLastLine': BoolPropEdit,
             'IndentationGuides': BoolPropEdit,
             'MouseDownCaptures': BoolPropEdit,
             'Overtype': BoolPropEdit,
             'ReadOnly': BoolPropEdit,
             'UndoCollection': BoolPropEdit,
             'UseHorizontalScrollBar': BoolPropEdit,
             'UseTabs': BoolPropEdit,
             'ViewEOL': BoolPropEdit,
             'ViewWhiteSpace': BoolPropEdit,
             'EOLMode': EnumPropEdit,
             'EdgeMode': EnumPropEdit,
             'Lexer': EnumPropEdit,
             'PrintColourMode': EnumPropEdit,
             'WrapMode': EnumPropEdit,
            })

        self.options.update({'EOLMode'   : stcEOLMode,
                             'EdgeMode' : stcEdgeMode,
                             'Lexer': stcLexer,
                             'PrintColourMode': stcPrintColourMode,
                             'WrapMode': stcWrapMode,
                            })
        self.names.update({'EOLMode'   : stcEOLModeNames,
                           'EdgeMode' : stcEdgeModeNames,
                           'Lexer': stcLexerNames,
                           'PrintColourMode': stcPrintColourModeNames,
                           'WrapMode': stcWrapModeNames,
                          })
예제 #8
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.windowStyles = [
         'wx.html.HW_SCROLLBAR_NEVER', 'wx.html.HW_SCROLLBAR_AUTO'
     ] + self.windowStyles
     self._borders = 10
     self.initPropsThruCompanion.append('Borders')
예제 #9
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.editors['MinValue'] = IntConstrPropEdit
     self.editors['MaxValue'] = IntConstrPropEdit
     self.windowStyles = ['wx.SL_HORIZONTAL', 'wx.SL_VERTICAL',
                          'wx.SL_AUTOTICKS', 'wx.SL_LABELS', 'wx.SL_LEFT',
                          'wx.SL_RIGHT', 'wx.SL_TOP',
                          'wx.SL_SELRANGE'] + self.windowStyles
예제 #10
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.editors.update({'Bitmap':          BitmapPropEdit,
                          'BitmapSelected' : BitmapPropEdit,
                          'BitmapFocused'  : BitmapPropEdit,
                          'BitmapDisabled' : BitmapPropEdit})
     self.windowStyles = ['wx.BU_AUTODRAW', 'wx.BU_LEFT', 'wx.BU_TOP',
                          'wx.BU_RIGHT', 'wx.BU_BOTTOM'] + self.windowStyles
예제 #11
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.editors['Default'] = BoolPropEdit
     self.editors['Id'] = ButtonIdConstrPropEdit
     self.windowStyles = [
         'wx.BU_LEFT', 'wx.BU_TOP', 'wx.BU_RIGHT', 'wx.BU_BOTTOM',
         'wx.BU_EXACTFIT'
     ] + self.windowStyles
     self.customPropEvaluators['Default'] = self.EvalDefault
예제 #12
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.editors['DefaultFilter'] = IntConstrPropEdit
     self.windowStyles = [
         'wx.DIRCTRL_DIR_ONLY', 'wx.DIRCTRL_SELECT_FIRST',
         'wx.DIRCTRL_SHOW_FILTERS', 'wx.DIRCTRL_3D_INTERNAL',
         'wx.DIRCTRL_EDIT_LABELS'
     ] + self.windowStyles
     self.compositeCtrl = True
예제 #13
0
    def __init__(self, name, designer, parent, ctrlClass):
        WindowDTC.__init__(self, name, designer, parent, ctrlClass)
        self.editors['Filename'] = FilenameConstrPropEdit
        self.editors['Backend'] = EnumConstrPropEdit
        self.editors['Volume'] = BITPropEditor
        self.editors['PlaybackRate'] = BITPropEditor

        self.names['Backend'] = ['wx.media.MEDIABACKEND_DIRECTSHOW', 
                                 'wx.media.MEDIABACKEND_MCI',
                                 'wx.media.MEDIABACKEND_QUICKTIME',
                                 'wx.media.MEDIABACKEND_GSTREAMER', "''"]
예제 #14
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.editors.update({
         'Bitmap': BitmapPropEdit,
         'BitmapSelected': BitmapPropEdit,
         'BitmapFocused': BitmapPropEdit,
         'BitmapDisabled': BitmapPropEdit
     })
     self.windowStyles = [
         'wx.BU_AUTODRAW', 'wx.BU_LEFT', 'wx.BU_TOP', 'wx.BU_RIGHT',
         'wx.BU_BOTTOM'
     ] + self.windowStyles
예제 #15
0
 def persistProp(self, name, setterName, value):
     if setterName == 'SetImageList':
         imgList, listType = value.split(',')
         imgList, listType = imgList.strip(), listType.strip()
         for prop in self.textPropList:
             if prop.prop_setter == setterName and prop.params[1] == listType:
                 prop.params = [imgList, listType]
                 return
         self.textPropList.append(methodparse.PropertyParse( None, self.name,
             setterName, [imgList, listType], 'SetImageList'))
     else:
         WindowDTC.persistProp(self, name, setterName, value)
예제 #16
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.windowStyles = ['wx.TE_PROCESS_ENTER', 'wx.TE_PROCESS_TAB',
                          'wx.TE_MULTILINE', 'wx.TE_PASSWORD',
                          'wx.TE_READONLY', 'wx.TE_RICH', 'wx.TE_RICH2',
                          'wx.TE_AUTO_URL', 'wx.TE_NOHIDESEL',
                          'wx.TE_LEFT', 'wx.TE_CENTER', 'wx.TE_RIGHT',
                          'wx.TE_DONTWRAP', 'wx.TE_LINEWRAP', 'wx.TE_WORDWRAP',
                          ] + self.windowStyles
     self.editors['Editable'] = BoolPropEdit
     self._maxLength = 0
     self.initPropsThruCompanion.append('MaxLength')
예제 #17
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.editors.update({'ImageList': ImageListClassLinkPropEdit,
                          #'StateImageList': ImageListClassLinkPropEdit
                          })
     self.windowStyles = ['wx.TR_NO_BUTTONS', 'wx.TR_HAS_BUTTONS',
                          'wx.TR_EDIT_LABELS', 'wx.TR_NO_LINES',
                          'wx.TR_LINES_AT_ROOT',
                          #'wxTR_HIDE_ROOT',
                          'wx.TR_ROW_LINES',
                          #'wxTR_HAS_VARIABLE_ROW_HEIGHT',
                          'wx.TR_SINGLE', 'wx.TR_MULTIPLE', 'wx.TR_EXTENDED',
                          'wx.TR_DEFAULT_STYLE'] + self.windowStyles
예제 #18
0
    def __init__(self, name, designer, parent, ctrlClass):
        WindowDTC.__init__(self, name, designer, parent, ctrlClass)
        self.editors['Editable'] = self.editors['GridLinesEnabled'] = BoolPropEdit
        self.editors['SelectionMode'] = EnumPropEdit
        self.compositeCtrl = True

        self.options['SelectionMode'] = [wx.grid.Grid.wxGridSelectCells,
                                         wx.grid.Grid.wxGridSelectRows,
                                         wx.grid.Grid.wxGridSelectColumns]
        self.names['SelectionMode'] = \
              {'wx.grid.Grid.wxGridSelectCells': wx.grid.Grid.wxGridSelectCells,
               'wx.grid.Grid.wxGridSelectRows': wx.grid.Grid.wxGridSelectRows,
               'wx.grid.Grid.wxGridSelectColumns': wx.grid.Grid.wxGridSelectColumns}
예제 #19
0
 def persistProp(self, name, setterName, value):
     if name == 'Default':
         for prop in self.textPropList:
             if prop.prop_setter == setterName:
                 if value.lower() == 'true':
                     prop.params = []
                 else:
                     del self.textPropList[self.textPropList.index(prop)]
                 return
         if value.lower() == 'true':
             self.textPropList.append(methodparse.PropertyParse(
                   None, self.getCompName(), setterName, [], name))
     else:
         WindowDTC.persistProp(self, name, setterName, value)
예제 #20
0
 def persistProp(self, name, setterName, value):
     if setterName == 'SetImageList':
         imgList, listType = value.split(',')
         imgList, listType = imgList.strip(), listType.strip()
         for prop in self.textPropList:
             if prop.prop_setter == setterName and prop.params[
                     1] == listType:
                 prop.params = [imgList, listType]
                 return
         self.textPropList.append(
             methodparse.PropertyParse(None, self.name, setterName,
                                       [imgList, listType], 'SetImageList'))
     else:
         WindowDTC.persistProp(self, name, setterName, value)
예제 #21
0
 def persistProp(self, name, setterName, value):
     if setterName == 'SetRange':
         rMin, rMax = self.eval(value)
         newParams = [`rMin`, `rMax`]
         # edit if exists
         for prop in self.textPropList:
             if prop.prop_setter == setterName:
                 prop.params = newParams
                 return
         # add if not defined
         self.textPropList.append(methodparse.PropertyParse( None, self.name,
             setterName, newParams, 'SetRange'))
     else:
         WindowDTC.persistProp(self, name, setterName, value)
예제 #22
0
 def persistProp(self, name, setterName, value):
     if name == 'Default':
         for prop in self.textPropList:
             if prop.prop_setter == setterName:
                 if value.lower() == 'true':
                     prop.params = []
                 else:
                     del self.textPropList[self.textPropList.index(prop)]
                 return
         if value.lower() == 'true':
             self.textPropList.append(
                 methodparse.PropertyParse(None, self.getCompName(),
                                           setterName, [], name))
     else:
         WindowDTC.persistProp(self, name, setterName, value)
예제 #23
0
 def persistProp(self, name, setterName, value):
     if setterName == 'SetRange':
         rMin, rMax = self.eval(value)
         newParams = [ ` rMin `, ` rMax `]
         # edit if exists
         for prop in self.textPropList:
             if prop.prop_setter == setterName:
                 prop.params = newParams
                 return
         # add if not defined
         self.textPropList.append(
             methodparse.PropertyParse(None, self.name, setterName,
                                       newParams, 'SetRange'))
     else:
         WindowDTC.persistProp(self, name, setterName, value)
예제 #24
0
    def __init__(self, name, designer, parent, ctrlClass):
        WindowDTC.__init__(self, name, designer, parent, ctrlClass)
        self.editors['Editable'] = self.editors[
            'GridLinesEnabled'] = BoolPropEdit
        self.editors['SelectionMode'] = EnumPropEdit
        self.compositeCtrl = True

        self.options['SelectionMode'] = [
            wx.grid.Grid.wxGridSelectCells, wx.grid.Grid.wxGridSelectRows,
            wx.grid.Grid.wxGridSelectColumns
        ]
        self.names['SelectionMode'] = \
              {'wx.grid.Grid.wxGridSelectCells': wx.grid.Grid.wxGridSelectCells,
               'wx.grid.Grid.wxGridSelectRows': wx.grid.Grid.wxGridSelectRows,
               'wx.grid.Grid.wxGridSelectColumns': wx.grid.Grid.wxGridSelectColumns}
예제 #25
0
 def properties(self):
     props = WindowDTC.properties(self)
     props.update({
         'Bitmap': ('CtrlRoute', wx.BitmapButton.GetBitmapLabel,
                    wx.BitmapButton.SetBitmapLabel)
     })
     return props
예제 #26
0
 def properties(self):
     props = WindowDTC.properties(self)
     props.update({'Editable': ('CtrlRoute',
                   wx.grid.Grid.IsEditable, wx.grid.Grid.EnableEditing),
                   'GridLinesEnabled': ('CtrlRoute',
                   wx.grid.Grid.GridLinesEnabled, wx.grid.Grid.EnableGridLines)})
     return props
예제 #27
0
 def notification(self, compn, action):
     WindowDTC.notification(self, compn, action)
     if action == 'delete':
         for propName, typeName in (('ImageListSmall', 'wx.IMAGE_LIST_SMALL'),
                                    ('ImageListNormal', 'wx.IMAGE_LIST_NORMAL')):
             imgLst, imgLstType = self.GetImageList(propName)
             if imgLst and `imgLst` == `compn.control`:
                 self.SetImageList(propName, (None,))
                 idx = 0
                 while idx < len(self.textPropList):
                     prop = self.textPropList[idx]
                     if prop.prop_setter == 'SetImageList' and \
                           prop.params[1] == typeName:
                         del self.textPropList[idx]
                     else:
                         idx = idx + 1
예제 #28
0
 def hideDesignTime(self):
     return WindowDTC.hideDesignTime(self) + [
         'HandSize', 'HandBorderWidth', 'HandBorderColour',
         'HandFillColour', 'TickSize', 'TickStyle', 'TickOffset',
         'TickBorderWidth', 'TickBorderColour', 'TickFillColour',
         'TickFont', 'ClockStyle'
     ]
예제 #29
0
 def properties(self):
     props = WindowDTC.properties(self)
     props.update({
         'MaxLength': ('CompnRoute', self.GetMaxLength, self.SetMaxLength),
         'Editable':
         ('CtrlRoute', wx.TextCtrl.IsEditable, wx.TextCtrl.SetEditable)
     })
     return props
예제 #30
0
 def properties(self):
     import wx.richtext
     props = WindowDTC.properties(self)
     props.update({
         'Editable': ('CtrlRoute', wx.richtext.RichTextCtrl.IsEditable,
                      wx.richtext.RichTextCtrl.SetEditable)
     })
     return props
예제 #31
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.editors.update({'Columns':         ListColumnsColPropEdit,
                          'ImageListSmall':  ListCtrlImageListClassLinkPropEdit,
                          'ImageListNormal': ListCtrlImageListClassLinkPropEdit})
     self.windowStyles = ['wx.LC_LIST', 'wx.LC_REPORT', 'wx.LC_VIRTUAL', 'wx.LC_ICON',
                          'wx.LC_SMALL_ICON', 'wx.LC_ALIGN_TOP',
                          'wx.LC_ALIGN_LEFT', 'wx.LC_AUTOARRANGE',
                          'wx.LC_USER_TEXT', 'wx.LC_EDIT_LABELS',
                          'wx.LC_NO_HEADER', 'wx.LC_SINGLE_SEL',
                          'wx.LC_SORT_ASCENDING', 'wx.LC_SORT_DESCENDING',
                          'wx.LC_HRULES', 'wx.LC_VRULES'] + self.windowStyles
     self.subCompanions['Columns'] = ListCtrlColumnsCDTC
     self.listTypeNameMap = {'ImageListSmall'  : wx.IMAGE_LIST_SMALL,
                             'ImageListNormal' : wx.IMAGE_LIST_NORMAL}
     for name in self.listTypeNameMap.keys():
         self.customPropEvaluators[name] = self.EvalImageList
     self.customPropEvaluators['ImageList'] = self.EvalImageList
예제 #32
0
    def properties(self):
        props = WindowDTC.properties(self)
        props['Columns'] =  ('NoneRoute', None, None)

        prop = ('NameRoute', self.GetImageList, self.SetImageList)
        for name in self.listTypeNameMap.keys():
            props[name] = prop

        return props
예제 #33
0
    def properties(self):
        props = WindowDTC.properties(self)
        props['Columns'] = ('NoneRoute', None, None)

        prop = ('NameRoute', self.GetImageList, self.SetImageList)
        for name in self.listTypeNameMap.keys():
            props[name] = prop

        return props
예제 #34
0
 def properties(self):
     props = WindowDTC.properties(self)
     props.update({
         'Editable':
         ('CtrlRoute', wx.grid.Grid.IsEditable, wx.grid.Grid.EnableEditing),
         'GridLinesEnabled': ('CtrlRoute', wx.grid.Grid.GridLinesEnabled,
                              wx.grid.Grid.EnableGridLines)
     })
     return props
예제 #35
0
 def notification(self, compn, action):
     WindowDTC.notification(self, compn, action)
     if action == 'delete':
         for propName, typeName in (('ImageListSmall',
                                     'wx.IMAGE_LIST_SMALL'),
                                    ('ImageListNormal',
                                     'wx.IMAGE_LIST_NORMAL')):
             imgLst, imgLstType = self.GetImageList(propName)
             if imgLst and ` imgLst ` == ` compn.control `:
                 self.SetImageList(propName, (None, ))
                 idx = 0
                 while idx < len(self.textPropList):
                     prop = self.textPropList[idx]
                     if prop.prop_setter == 'SetImageList' and \
                           prop.params[1] == typeName:
                         del self.textPropList[idx]
                     else:
                         idx = idx + 1
예제 #36
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.editors.update({
         'ImageList': ImageListClassLinkPropEdit,
         #'StateImageList': ImageListClassLinkPropEdit
     })
     self.windowStyles = [
         'wx.TR_NO_BUTTONS',
         'wx.TR_HAS_BUTTONS',
         'wx.TR_EDIT_LABELS',
         'wx.TR_NO_LINES',
         'wx.TR_LINES_AT_ROOT',
         #'wxTR_HIDE_ROOT',
         'wx.TR_ROW_LINES',
         #'wxTR_HAS_VARIABLE_ROW_HEIGHT',
         'wx.TR_SINGLE',
         'wx.TR_MULTIPLE',
         'wx.TR_EXTENDED',
         'wx.TR_DEFAULT_STYLE'
     ] + self.windowStyles
예제 #37
0
 def events(self):
     return WindowDTC.events(self) + ['SpinEvent', 'CmdScrollEvent']
예제 #38
0
 def properties(self):
     props = WindowDTC.properties(self)
     props['Range'] = ('CompnRoute', self.GetRange, self.SetRange)
     return props
예제 #39
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.windowStyles = ['wx.SP_HORIZONTAL', 'wx.SP_VERTICAL',
                          'wx.SP_ARROW_KEYS', 'wx.SP_WRAP'] + self.windowStyles
     self.customPropEvaluators['Range'] = self.EvalRange
예제 #40
0
 def properties(self):
     props = WindowDTC.properties(self)
     props.update({'Bitmap': ('CtrlRoute', wx.BitmapButton.GetBitmapLabel,
                                           wx.BitmapButton.SetBitmapLabel)})
     return props
예제 #41
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.windowStyles = ['wx.BU_AUTODRAW', 'wx.BU_LEFT', 'wx.BU_TOP',
                          'wx.BU_RIGHT', 'wx.BU_BOTTOM'] + self.windowStyles
예제 #42
0
 def writeImports(self):
     return '\n'.join( (WindowDTC.writeImports(self),
                        'import wx.lib.buttons') )
예제 #43
0
 def events(self):
     return WindowDTC.events(self) + ['ButtonEvent']
예제 #44
0
 def properties(self):
     props = WindowDTC.properties(self)
     props['Default'] = ('CompnRoute', self.GetDefault, self.SetDefault)
     props['Id'] = ('CompnRoute', self.GetId, self.SetId)
     return props
예제 #45
0
 def events(self):
     return WindowDTC.events(self) + ['ButtonEvent']
예제 #46
0
 def writeImports(self):
     return '\n'.join(
         (WindowDTC.writeImports(self), 'import wx.lib.buttons'))
예제 #47
0
 def writeImports(self):
     return '\n'.join( (WindowDTC.writeImports(self),
                        'from wx.lib.bcrtl.activex.%s import %s' % (
                         self.comModule, self.comImports)) )
예제 #48
0
 def events(self):
     return WindowDTC.events(self) + ['ComboCtrlEvent']
예제 #49
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.editors['UseFocusIndicator'] = BoolPropEdit
     self.ctrlDisabled = True
예제 #50
0
 def writeImports(self):
     return '\n'.join((WindowDTC.writeImports(self),
                       'from wx.lib.bcrtl.activex.%s import %s' %
                       (self.comModule, self.comImports)))
예제 #51
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.windowStyles = ['wx.CB_READONLY', 'wx.CB_SORT', 'wx.TE_PROCESS_ENTER',
       'wx.combo.CC_SPECIAL_DCLICK', 'wx.combo.CC_STD_BUTTON'] + self.windowStyles
     self.ctrlDisabled = True  
예제 #52
0
 def designTimeControl(self, position, size, args=None):
     dtc = WindowDTC.designTimeControl(self, position, size, args)
     dtc.Enable(False)
     return dtc
예제 #53
0
 def properties(self):
     props = WindowDTC.properties(self)
     props['Default'] = ('CompnRoute', self.GetDefault, self.SetDefault)
     props['Id'] = ('CompnRoute', self.GetId, self.SetId)
     return props
예제 #54
0
 def designTimeControl(self, position, size, args = None):
     dtc = WindowDTC.designTimeControl(self, position, size, args)
     dtc.Enable(False)
     return dtc
예제 #55
0
 def writeImports(self):
     return '\n'.join( (WindowDTC.writeImports(self),
                        'import wx.combo') )
예제 #56
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.windowStyles = [
         'wx.BU_AUTODRAW', 'wx.BU_LEFT', 'wx.BU_TOP', 'wx.BU_RIGHT',
         'wx.BU_BOTTOM'
     ] + self.windowStyles