1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
|
.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2018 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. currentmodule:: wx.lib.masked.maskededit
.. highlight:: python
.. _wx.lib.masked.maskededit.MaskedEditMixin:
==========================================================================================================================================
|phoenix_title| **wx.lib.masked.maskededit.MaskedEditMixin**
==========================================================================================================================================
This class allows us to abstract the masked edit functionality that could
be associated with any text entry control. (eg. wx.TextCtrl, wx.ComboBox, etc.)
It forms the basis for all of the lib.masked controls.
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html
<div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
<img id="toggleBlock-trigger" src="_static/images/closed.png"/>
Inheritance diagram for class <strong>MaskedEditMixin</strong>:
</div>
<div id="toggleBlock-summary" style="display:block;"></div>
<div id="toggleBlock-content" style="display:none;">
<p class="graphviz">
<center><img src="_static/images/inheritance/wx.lib.masked.maskededit.MaskedEditMixin_inheritance.png" alt="Inheritance diagram of MaskedEditMixin" usemap="#dummy" class="inheritance"/></center>
</div>
<script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
<map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.lib.masked.maskededit.MaskedEditMixin.html" title="wx.lib.masked.maskededit.MaskedEditMixin" alt="" coords="4,5,301,35"/> </map>
</p>
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.lib.masked.maskededit.MaskedEditMixin.__init__` This is the "constructor" for setting up the mixin variable parameters for the composite class.
:meth:`~wx.lib.masked.maskededit.MaskedEditMixin.ClearValue` Blanks the current control value by replacing it with the default value.
:meth:`~wx.lib.masked.maskededit.MaskedEditMixin.ClearValueAlt` Blanks the current control value by replacing it with the default value.
:meth:`~wx.lib.masked.maskededit.MaskedEditMixin.GetCtrlParameter` Routine for retrieving the value of any given parameter
:meth:`~wx.lib.masked.maskededit.MaskedEditMixin.GetFieldParameter` Routine provided for getting a parameter of an individual field.
:meth:`~wx.lib.masked.maskededit.MaskedEditMixin.GetMaskParameter` old name for the GetCtrlParameters function (DEPRECATED)
:meth:`~wx.lib.masked.maskededit.MaskedEditMixin.GetPlainValue` Returns control's value stripped of the template text.
:meth:`~wx.lib.masked.maskededit.MaskedEditMixin.IsDefault` Returns ``True`` if the value specified (or the value of the control if not specified)
:meth:`~wx.lib.masked.maskededit.MaskedEditMixin.IsEmpty` Returns ``True`` if control is equal to an empty value.
:meth:`~wx.lib.masked.maskededit.MaskedEditMixin.IsValid` Indicates whether the value specified (or the current value of the control
:meth:`~wx.lib.masked.maskededit.MaskedEditMixin.SetBackgroundColour`
:meth:`~wx.lib.masked.maskededit.MaskedEditMixin.SetCtrlParameters` This public function can be used to set individual or multiple masked edit
:meth:`~wx.lib.masked.maskededit.MaskedEditMixin.SetFieldParameters` Routine provided to modify the parameters of a given field.
:meth:`~wx.lib.masked.maskededit.MaskedEditMixin.SetForegroundColour`
:meth:`~wx.lib.masked.maskededit.MaskedEditMixin.SetMaskParameters` old name for the SetCtrlParameters function (DEPRECATED)
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: MaskedEditMixin
This class allows us to abstract the masked edit functionality that could
be associated with any text entry control. (eg. wx.TextCtrl, wx.ComboBox, etc.)
It forms the basis for all of the lib.masked controls.
.. method:: __init__(self, name = 'MaskedEdit', \*\*kwargs)
This is the "constructor" for setting up the mixin variable parameters for the composite class.
.. method:: ClearValue(self)
Blanks the current control value by replacing it with the default value.
.. method:: ClearValueAlt(self)
Blanks the current control value by replacing it with the default value.
Using ChangeValue, so not to fire a change event
.. method:: GetCtrlParameter(self, paramname)
Routine for retrieving the value of any given parameter
.. method:: GetFieldParameter(self, field_index, paramname)
Routine provided for getting a parameter of an individual field.
.. method:: GetMaskParameter(self, paramname)
old name for the GetCtrlParameters function (DEPRECATED)
.. method:: GetPlainValue(self, candidate=None)
Returns control's value stripped of the template text.
plainvalue = MaskedEditMixin.GetPlainValue()
.. method:: IsDefault(self, value=None)
Returns ``True`` if the value specified (or the value of the control if not specified)
is equal to the default value.
.. method:: IsEmpty(self, value=None)
Returns ``True`` if control is equal to an empty value.
(Empty means all editable positions in the template == fillChar.)
.. method:: IsValid(self, value=None)
Indicates whether the value specified (or the current value of the control
if not specified) is considered valid.
.. method:: SetBackgroundColour(self, colour)
.. method:: SetCtrlParameters(self, \*\*kwargs)
This public function can be used to set individual or multiple masked edit
parameters after construction. (See maskededit module overview for the list
of valid parameters.)
.. method:: SetFieldParameters(self, field_index, \*\*kwargs)
Routine provided to modify the parameters of a given field.
Because changes to fields can affect the overall control,
direct access to the fields is prevented, and the control
is always "reconfigured" after setting a field parameter.
(See maskededit module overview for the list of valid field-level
parameters.)
.. method:: SetForegroundColour(self, colour)
.. method:: SetMaskParameters(self, \*\*kwargs)
old name for the SetCtrlParameters function (DEPRECATED)
|