X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c878ceeae8d69f231477ef0f207766093547ab86..f78e4942ec0f3f6abd2992502e2d6c5c2e8e55f6:/wxPython/wx/lib/masked/ctrl.py diff --git a/wxPython/wx/lib/masked/ctrl.py b/wxPython/wx/lib/masked/ctrl.py index 897d0663bd..9a55549fcf 100644 --- a/wxPython/wx/lib/masked/ctrl.py +++ b/wxPython/wx/lib/masked/ctrl.py @@ -15,44 +15,43 @@ # o Removed wx prefix # -"""
--masked.Ctrl is actually a factory function for several types of +""" + +*masked.Ctrl* is actually a factory function for several types of masked edit controls: -
-
-masked.Ctrl works by looking for a special controlType + + ================= ========================================================= + masked.TextCtrl standard masked edit text box + masked.ComboBox adds combobox capabilities + masked.IpAddrCtrl adds logical input semantics for IP address entry + masked.TimeCtrl special subclass handling lots of time formats as values + masked.NumCtrl special subclass handling numeric values + ================= ========================================================= + +masked.Ctrl works by looking for a special *controlType* parameter in the variable arguments of the control, to determine what kind of instance to return. -controlType can be one of: -
+controlType can be one of:: + controlTypes.TEXT controlTypes.COMBO controlTypes.IPADDR controlTypes.TIME controlTypes.NUMBER -+ These constants are also available individually, ie, you can -use either of the following: -
+use either of the following:: + from wxPython.wx.lib.masked import Ctrl, COMBO, TEXT, NUMBER, TIME from wxPython.wx.lib.masked import Ctrl, controlTypes -+ If not specified as a keyword argument, the default controlType is controlTypes.TEXT. -
-Each of the above classes has its own unique arguments, but MaskedCtrl -provides a single "unified" interface for masked controls. Masked.TextCtrl, -masked.ComboBox and masked.IpAddrCtrl are all documented below; the others have -their own demo pages and interface descriptions. - + +Each of the above classes has its own unique arguments, but Masked.Ctrl +provides a single "unified" interface for masked controls. + + """ from wx.lib.masked import TextCtrl, ComboBox, IpAddrCtrl