Module params
[hide private]
[frames] | no frames]

Module params

source code

Visual Param* classes for populating AtrtibutePanel with attribute editing blocks.

Classes [hide private]
  PPanel
Abstract base class creating an empty wx.Panel.
  ParamBinaryOr
Editing binary flag attributes defined by a string separated by '|'.
  ParamFlag
Sizer flag editing.
  ParamColour
Color attribute editing.
  FontPickerCtrl
  ParamFont
Font attribute editing.
  ParamInt
TextCtrl with SpinButton for integer parameters.
  ParamUnit
Similar to ParamInt, 'd' can be appended to the value to specify dialog units mode.
  ParamMultilineText
Multiline text editing.
  ParamText
Text attribute.
  ParamComment
Comment node editing.
  ContentDialog
Dialog for editing content attributes.
  ContentCheckListDialog
Dialog for editing content checklist attributes.
  ParamContent
Editing of content attribute.
  ParamContentCheckList
Editing of content check list attribute.
  IntListDialog
Dialog for editing integer lists.
  ParamIntList
Editing integer list attribute.
  RadioBox
  CheckBox
  ParamBool
Editing on/off attributes.
  ParamInverseBool
like ParamBool but defined if unchecked
  ParamOrient
Orientation attribute editing for sizers.
  ParamOrientation
Orientaiton attribute editing for wx.SplitterWindow.
  ParamBitmap
  ParamImage
Image selector.
  ParamCombo
  ParamEncoding
Editing encoding attribute of the XML root node.
  StylePanel
Style panel.
  CheckListBoxComboPopup
Functions [hide private]
 
InitParams(panel)
Set pixel common size based on parent window.
source code
 
ReverseMap(m) source code
 
MetaParamInt(**kargs)
Create ParamInt class with default value.
source code
 
MetaParamText(textWidth, proportion=0)
Return a ParamText class with specified width and proportion.
source code
Variables [hide private]
  WARenameDict = {'fg': 'foreground', 'bg': 'background'}
  fontFamiliesWx2Xml = {wx.DEFAULT: 'default', wx.DECORATIVE: 'd...
  fontStylesWx2Xml = {wx.NORMAL: 'normal', wx.SLANT: 'slant', wx...
  fontWeightsWx2Xml = {wx.NORMAL: 'normal', wx.LIGHT: 'light', w...
  fontFamiliesXml2wx = ReverseMap(fontFamiliesWx2Xml)
  fontStylesXml2wx = ReverseMap(fontStylesWx2Xml)
  fontWeightsXml2wx = ReverseMap(fontWeightsWx2Xml)
  ParamIntNN = MetaParamInt(default= 0, range= (0, 2147483647))
  ParamIntP = MetaParamInt(default= 1, range= (1, 2147483647))
  ParamLongText = MetaParamText(200, 1)
  ParamAccel = MetaParamText(100)
  ParamHelp = MetaParamText(200, 1)
  ParamPosSize = MetaParamText(80)
  paramDict = {'flag': ParamFlag, 'orient': ParamOrient, 'option...
Default classes for standard attributes.
Variables Details [hide private]

fontFamiliesWx2Xml

Value:
{wx.DEFAULT: 'default', wx.DECORATIVE: 'decorative', wx.ROMAN: 'roman'\
, wx.SCRIPT: 'script', wx.SWISS: 'swiss', wx.MODERN: 'modern'}

fontStylesWx2Xml

Value:
{wx.NORMAL: 'normal', wx.SLANT: 'slant', wx.ITALIC: 'italic'}

fontWeightsWx2Xml

Value:
{wx.NORMAL: 'normal', wx.LIGHT: 'light', wx.BOLD: 'bold'}

paramDict

Default classes for standard attributes.
Value:
{'flag': ParamFlag, 'orient': ParamOrient, 'option': ParamInt, 'cellpo\
s': ParamPosSize, 'cellspan': ParamPosSize, 'border': ParamUnit, 'bord\
ers': ParamUnit, 'cols': ParamIntP, 'rows': ParamIntP, 'vgap': ParamUn\
it, 'hgap': ParamUnit, 'pos': ParamPosSize, 'size': ParamPosSize, 'che\
ckable': ParamBool, 'checked': ParamBool, 'radio': ParamBool, 'accel':\
 ParamAccel, 'help': ParamHelp, 'centered': ParamBool, 'label': ParamM\
ultilineText, 'title': ParamLongText, 'value': ParamLongText, 'content\
': ParamContent, 'selection': ParamIntNN, 'min': ParamInt, 'max': Para\
...