예제 #1
0
    def __init__(self, name, designer, cmpn, obj, ownerPW):
        HelperDTC.__init__(self, name, designer, cmpn, obj, ownerPW)
        self.editors = {'FaceName'  : PropertyEditors.EnumPropEdit,
                        'Family'    : PropertyEditors.EnumPropEdit,
                        'Style'     : PropertyEditors.EnumPropEdit,
                        'Weight'    : PropertyEditors.EnumPropEdit,
                        'Underlined': PropertyEditors.BoolPropEdit,}

        fontEnum = wx.FontEnumerator()
        fontEnum.EnumerateFacenames()
        fontNameList = fontEnum.GetFacenames()
        fontFaceName = []
        fontFaceNameNames = {}
        for fnt in fontNameList:
            fontFaceName.append(fnt)
            fontFaceNameNames[fnt] = fnt
        fontFaceName.sort()

        self.options = {'FaceName' : fontFaceName,
                        'Family'   : fontFamily,
                        'Style'    : fontStyle,
                        'Weight'   : fontWeight,}
        self.names = {'FaceName' : fontFaceNameNames,
                      'Family'   : fontFamilyNames,
                      'Style'    : fontStyleNames,
                      'Weight'   : fontWeightNames,}
예제 #2
0
    def __init__(self, name, designer, cmpn, obj, ownerPW):
        HelperDTC.__init__(self, name, designer, cmpn, obj, ownerPW)
        self.editors = {'FaceName'  : PropertyEditors.EnumPropEdit,
                        'Family'    : PropertyEditors.EnumPropEdit,
                        'Style'     : PropertyEditors.EnumPropEdit,
                        'Weight'    : PropertyEditors.EnumPropEdit,
                        'Underlined': PropertyEditors.BoolPropEdit,}

        fontEnum = wx.FontEnumerator()
        fontEnum.EnumerateFacenames()
        fontNameList = fontEnum.GetFacenames()
        fontFaceName = []
        fontFaceNameNames = {}
        for fnt in fontNameList:
            fontFaceName.append(fnt)
            fontFaceNameNames[fnt] = fnt
        fontFaceName.sort()

        self.options = {'FaceName' : fontFaceName,
                        'Family'   : fontFamily,
                        'Style'    : fontStyle,
                        'Weight'   : fontWeight,}
        self.names = {'FaceName' : fontFaceNameNames,
                      'Family'   : fontFamilyNames,
                      'Style'    : fontStyleNames,
                      'Weight'   : fontWeightNames,}
예제 #3
0
 def __init__(self, name, designer, cmpn, obj, ownerPW):
     HelperDTC.__init__(self, name, designer, cmpn, obj, ownerPW)
     self.editors = {
         'Red': PropertyEditors.IntPropEdit,
         'Green': PropertyEditors.IntPropEdit,
         'Blue': PropertyEditors.IntPropEdit,
     }
예제 #4
0
 def __init__(self, name, designer, cmpn, obj, ownerPW):
     HelperDTC.__init__(self, name, designer, cmpn, obj, ownerPW)
     self.editors = {'Left'   : PropertyEditors.BoolPropEdit,
                     'Top'    : PropertyEditors.BoolPropEdit,
                     'Right'  : PropertyEditors.BoolPropEdit,
                     'Bottom' : PropertyEditors.BoolPropEdit}
     self.anchCtrl = cmpn.control
     self.assureAnchors()
     self.GetLeftAnchor('')
     self.GetTopAnchor('')
     self.GetRightAnchor('')
     self.GetBottomAnchor('')
예제 #5
0
 def __init__(self, name, designer, cmpn, obj, ownerPW):
     HelperDTC.__init__(self, name, designer, cmpn, obj, ownerPW)
     self.editors = {'Left'   : PropertyEditors.BoolPropEdit,
                     'Top'    : PropertyEditors.BoolPropEdit,
                     'Right'  : PropertyEditors.BoolPropEdit,
                     'Bottom' : PropertyEditors.BoolPropEdit}
     self.anchCtrl = cmpn.control
     self.assureAnchors()
     self.GetLeftAnchor('')
     self.GetTopAnchor('')
     self.GetRightAnchor('')
     self.GetBottomAnchor('')
예제 #6
0
 def __init__(self, name, designer, cmpn, obj, ownerPW):
     HelperDTC.__init__(self, name, designer, cmpn, obj, ownerPW)
     self.editors = {'Row' : PositiveIntPropEdit,
                     'Column' : PositiveIntPropEdit}
예제 #7
0
 def __init__(self, name, designer, cmpn, obj, ownerPW):
     HelperDTC.__init__(self, name, designer, cmpn, obj, ownerPW)
     self.editors = {
         'Row': PositiveIntPropEdit,
         'Column': PositiveIntPropEdit
     }
예제 #8
0
 def __init__(self, name, designer, cmpn, obj, ownerPW):
     HelperDTC.__init__(self, name, designer, cmpn, obj, ownerPW)
     self.editors = {'X' : PropertyEditors.IntPropEdit,
                     'Y' : PropertyEditors.IntPropEdit}
예제 #9
0
 def __init__(self, name, designer, cmpn, obj, ownerPW):
     HelperDTC.__init__(self, name, designer, cmpn, obj, ownerPW)
     self.editors = {'Red'    : PropertyEditors.IntPropEdit,
                     'Green'  : PropertyEditors.IntPropEdit,
                     'Blue'   : PropertyEditors.IntPropEdit,}
예제 #10
0
 def hideDesignTime(self):
     return HelperDTC.hideDesignTime(self) + ['Encoding', 'NativeFontInfo',
            'NativeFontInfoUserDesc', 'NoAntiAliasing']
예제 #11
0
 def __init__(self, name, designer, cmpn, obj, ownerPW):
     HelperDTC.__init__(self, name, designer, cmpn, obj, ownerPW)
     self.editors = {}
     for flag in self.ownerCompn.windowStyles:
         self.editors[flag] = PropertyEditors.BoolPropEdit
예제 #12
0
 def __init__(self, name, designer, cmpn, obj, ownerPW):
     HelperDTC.__init__(self, name, designer, cmpn, obj, ownerPW)
     self.editors = {'X' : PropertyEditors.IntPropEdit,
                     'Y' : PropertyEditors.IntPropEdit}
예제 #13
0
 def hideDesignTime(self):
     return HelperDTC.hideDesignTime(self) + ['Encoding', 'NativeFontInfo',
            'NativeFontInfoUserDesc', 'NoAntiAliasing']
예제 #14
0
 def __init__(self, name, designer, cmpn, obj, ownerPW):
     HelperDTC.__init__(self, name, designer, cmpn, obj, ownerPW)
     self.editors = {}
     for flag in self.ownerCompn.windowStyles:
         self.editors[flag] = PropertyEditors.BoolPropEdit