示例#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
 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
 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}
 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)
 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
 def events(self):
     return WindowDTC.events(self) + ['SpinEvent', 'CmdScrollEvent']
 def properties(self):
     props = WindowDTC.properties(self)
     props['Range'] = ('CompnRoute', self.GetRange, self.SetRange)
     return props
 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
 def properties(self):
     props = WindowDTC.properties(self)
     props.update({'Bitmap': ('CtrlRoute', wx.BitmapButton.GetBitmapLabel,
                                           wx.BitmapButton.SetBitmapLabel)})
     return props
 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
 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
 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)) )
 def events(self):
     return WindowDTC.events(self) + ['ComboCtrlEvent']
 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)))
 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
 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
 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