popup

All translations should be done here. Only controls eg. choice controls can give 100%safe english strings. SetValue(english) Display(dutch) #or any other language GetValue(english)

The bridge between fields and ctrls is done as follows: formField.Field <-> treeEdit.create_popup <-> popup.Ctrl

class lib.pyWx.popup.AutoCompleteDictionaryFileCtrl(parent, value, size, dictionary, **extra)

Bases: lib.pyWx.popup.DictionaryFileCtrl

InputCtrl
alias of AutoCompleteTextCtrl
class lib.pyWx.popup.BooleanCtrl(parent, value, size, on_change=None)

Bases: lib.pyWx.popup._CtrlRelevantMixin, lib.pyWx.popup._Ctrl, wx._controls.CheckBox

Get()
class lib.pyWx.popup.ChoiceCtrl(parent, value, size, choices, on_change=None)

Bases: lib.pyWx.popup._CtrlRelevantMixin, lib.pyWx.popup._CtrlWithItems, wx._controls.Choice

SetValue(value)
class lib.pyWx.popup.ColorCtrl(parent, value, size)

Bases: lib.pyWx.popup._Ctrl, wx.lib.colourselect.ColourSelect

GetColorAsString(color=None)
GetValue()
OnSelectColor(event)
class lib.pyWx.popup.ComboCtrl(parent, value, size, choices, style=[, 'DROPDOWN', 'SORT'])

Bases: lib.pyWx.popup._CtrlWithItems, wx._controls.ComboBox

Get()
RegisterStyle(style)
from a list of strings [‘DROPDOWN’,’SORT’] to wx
class lib.pyWx.popup.DictionaryFileCtrl(parent, value, size, dictionary, **extra)

Bases: lib.pyWx.popup.LabelFileCtrl

GetDefaultPath(default_path=None)
class lib.pyWx.popup.EditPanel(parent, typ, value, extra={}, size=(28, 28), pos=(0, 0), offset=0, label='', border=0, CtrlMixin=None)

Bases: wx._windows.Panel

See for example create_popup in treeEdit

Close()
Loses focus
class lib.pyWx.popup.FileCtrl(parent, value, size, **extra)

Bases: lib.pyWx.popup._PathCtrl

GetWildcard()
OnBrowse(event)
class lib.pyWx.popup.FileSizeCtrl(parent, value, size, **extra)
Bases: lib.pyWx.popup.PixelCtrl
class lib.pyWx.popup.FloatSliderCtrl(parent, value, size, **extra)

Bases: lib.pyWx.popup.SliderCtrl

Needs to mimic a wx.SliderCtrl

GetValue()
OnScroll(event)
OnSpin(event)
class lib.pyWx.popup.FolderCtrl(parent, value, size, **extra)

Bases: lib.pyWx.popup._PathCtrl

OnBrowse(event)
class lib.pyWx.popup.FontFileCtrl(parent, value, size, dictionary, **extra)

Bases: lib.pyWx.popup.AutoCompleteDictionaryFileCtrl

Close()
GetDefaultPath(default_path=None)
class lib.pyWx.popup.ForcedBoxSizer(orient, height, border=0)

Bases: wx._core.BoxSizer

AddForced(item, proportion, flag=2288, border=None, size=None)
class lib.pyWx.popup.ImageDictionaryFileCtrl(parent, value, size, extensions, dictionary, dialog, show_path=True, on_change=None, icon_size=(64, 64))

Bases: lib.pyWx.popup._CtrlRelevantMixin, lib.pyWx.popup._Ctrl, wx._controls.Button

GetValue()
OnChange(event, value=None)
SetValue(value)
class lib.pyWx.popup.ImageReadFileCtrl(parent, value, size, **extra)
Bases: lib.pyWx.popup.LabelFileCtrl
class lib.pyWx.popup.LabelFileCtrl(parent, value, size, **extra)

Bases: lib.pyWx.popup.FileCtrl

GetWildcard()
exception lib.pyWx.popup.NotImplementedError(instance, method)
Bases: exceptions.Exception
class lib.pyWx.popup.PixelCtrl(parent, value, size, **extra)

Bases: lib.pyWx.popup._ComposedCtrl

GetValue()
SetFocus()
SetValue(value)
SizeCtrl
alias of TextCtrl
SplitValue(value)
Split value and unit
lib.pyWx.popup.SetMinVerSize(item, size, border=0)
class lib.pyWx.popup.SliderCtrl(parent, value, size, **extra)

Bases: lib.pyWx.popup._ComposedCtrl

Needs to mimic a wx.SliderCtrl

GetValue()
OnScroll(event)
OnSpin(event)
SetBackgroundColour(color)
SetFocus()
class lib.pyWx.popup.TextCtrl(parent, value, id=-1, choices=None, on_change=None, **keyw)
Bases: lib.pyWx.popup._CtrlRelevantMixin, lib.pyWx.popup._CtrlChoices, wx._controls.ComboBox
lib.pyWx.popup.ctrl_factory(name, CtrlMixin)
lib.pyWx.popup.example()
lib.pyWx.popup.untranslated(self, x)

Previous topic

paint

Next topic

screenshot