To avoid a ton of boiler-plate, and to automate the getter/setter generation for each valid control parameter so we never forget to add the functions when adding parameters, this class programmatically adds the masked edit mixin parameters to itself. (This makes it easier for Designers like Boa to deal with masked controls.)
To further complicate matters, this is done with an extra level of inheritance, so that “general” classes like masked.TextCtrl can have all possible attributes, while derived classes, like masked.TimeCtrl and masked.NumCtrl can prevent exposure of those optional attributes of their base class that do not make sense for their derivation.
BaseMaskedTextCtrl(TextCtrl, MaskedEditMixin)
masked.TextCtrl(BaseMaskedTextCtrl, MaskedEditAccessorsMixin).
masked.NumCtrl( BaseMaskedTextCtrl )
and not have to expose all the same accessor functions for the derived control when they don’t all make sense for it.
wx.lib.masked.combobox.ComboBox
, wx.lib.masked.combobox.PreMaskedComboBox
, wx.lib.masked.textctrl.PreMaskedTextCtrl
, wx.lib.masked.textctrl.TextCtrl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MaskedEditAccessorsMixin
¶To avoid a ton of boiler-plate, and to automate the getter/setter generation for each valid control parameter so we never forget to add the functions when adding parameters, this class programmatically adds the masked edit mixin parameters to itself. (This makes it easier for Designers like Boa to deal with masked controls.)
To further complicate matters, this is done with an extra level of inheritance, so that “general” classes like masked.TextCtrl can have all possible attributes, while derived classes, like masked.TimeCtrl and masked.NumCtrl can prevent exposure of those optional attributes of their base class that do not make sense for their derivation.
BaseMaskedTextCtrl(TextCtrl, MaskedEditMixin)
masked.TextCtrl(BaseMaskedTextCtrl, MaskedEditAccessorsMixin).
masked.NumCtrl( BaseMaskedTextCtrl )
and not have to expose all the same accessor functions for the derived control when they don’t all make sense for it.