示例#1
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
示例#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.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
 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
示例#5
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
示例#6
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,
                          })
示例#7
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
示例#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['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
示例#12
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
示例#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 __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')
示例#16
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
示例#17
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}
示例#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 __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
示例#20
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 __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.editors['Start'] = PropertyEditors.BoolConstrPropEdit
示例#22
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.windowStyles = ['wx.ALIGN_LEFT', 'wx.ALIGN_RIGHT', 'wx.ALIGN_CENTRE',
                          'wx.ST_NO_AUTORESIZE'] + self.windowStyles
示例#23
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
示例#24
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.editors['Value'] = BoolPropEdit
     self.windowStyles = ['wx.ALIGN_RIGHT'] + self.windowStyles
示例#25
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.editors['UseFocusIndicator'] = BoolPropEdit
     self.ctrlDisabled = True
 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  
 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.windowStyles = ['wx.richtext.RE_MULTILINE', 'wx.richtext.RE_READONLY',
                         ] + self.windowStyles
     self.editors['Editable'] = BoolPropEdit
 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')
示例#30
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.windowStyles = ['wx.animate.AN_FIT_ANIMATION'] + self.windowStyles
     self.editors['Filename'] = GIFFilenameConstrPropEdit
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
示例#32
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.windowStyles = ['wx.SB_HORIZONTAL', 'wx.SB_VERTICAL'] + self.windowStyles
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.editors['UseFocusIndicator'] = BoolPropEdit
     self.ctrlDisabled = True
示例#34
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.windowStyles = ['wx.GA_HORIZONTAL', 'wx.GA_VERTICAL',
                     'wx.GA_PROGRESSBAR', 'wx.GA_SMOOTH'] + self.windowStyles
 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
示例#36
0
 def __init__(self, name, designer, parent, ctrlClass):
     WindowDTC.__init__(self, name, designer, parent, ctrlClass)
     self.editors['Bitmap'] = BitmapPropEdit