phoenix_title wx.lib.masked.maskededit.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.

Therefore, we define:

BaseMaskedTextCtrl(TextCtrl, MaskedEditMixin)

and

masked.TextCtrl(BaseMaskedTextCtrl, MaskedEditAccessorsMixin).

This allows us to then derive:

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.


class_hierarchy Class Hierarchy

Inheritance diagram for class MaskedEditAccessorsMixin:

sub_classes Known Subclasses

wx.lib.masked.combobox.ComboBox, wx.lib.masked.combobox.PreMaskedComboBox, wx.lib.masked.textctrl.PreMaskedTextCtrl, wx.lib.masked.textctrl.TextCtrl


method_summary Methods Summary

GetAutoCompleteKeycodes

GetAutoformat

GetAutoSelect

GetChoiceRequired

GetChoices

GetCompareNoCase

GetDatestyle

GetDecimalChar

GetDefaultEncoding

GetDefaultValue

GetDemo

GetDescription

GetEmptyBackgroundColour

GetEmptyInvalid

GetExcludeChars

GetFields

GetFillChar

GetFormatcodes

GetGroupChar

GetIncludeChars

GetInvalidBackgroundColour

GetMask

GetRaiseOnInvalidPaste

GetRetainFieldValidation

GetShiftDecimalChar

GetSignedForegroundColour

GetStopFieldChangeIfInvalid

GetUseFixedWidthFont

GetUseParensForNegatives

GetValidBackgroundColour

GetValidFunc

GetValidRange

GetValidRegex

GetValidRequired

SetAutoCompleteKeycodes

SetAutoformat

SetAutoSelect

SetChoiceRequired

SetChoices

SetCompareNoCase

SetDatestyle

SetDecimalChar

SetDefaultEncoding

SetDefaultValue

SetDemo

SetDescription

SetEmptyBackgroundColour

SetEmptyInvalid

SetExcludeChars

SetFields

SetFillChar

SetFormatcodes

SetGroupChar

SetIncludeChars

SetInvalidBackgroundColour

SetMask

SetRaiseOnInvalidPaste

SetRetainFieldValidation

SetShiftDecimalChar

SetSignedForegroundColour

SetStopFieldChangeIfInvalid

SetUseFixedWidthFont

SetUseParensForNegatives

SetValidBackgroundColour

SetValidFunc

SetValidRange

SetValidRegex

SetValidRequired


api Class API

class 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.

Therefore, we define:

BaseMaskedTextCtrl(TextCtrl, MaskedEditMixin)

and

masked.TextCtrl(BaseMaskedTextCtrl, MaskedEditAccessorsMixin).

This allows us to then derive:

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.