Home | Trees | Indices | Help |
|
---|
|
wx.TextCtrl --+ | cPhraseWheelBase
Widget for smart guessing of user fields, after Richard Terry's interface. - VB implementation by Richard Terry - Python port by Ian Haywood for GNUmed - enhanced by Karsten Hilbert for GNUmed - enhanced by Ian Haywood for aumed - enhanced by Karsten Hilbert for GNUmed @param matcher: a class used to find matches for the current input @type matcher: a L{match provider<Gnumed.pycommon.gmMatchProvider.cMatchProvider>} instance or C{None} @param selection_only: whether free-text can be entered without associated data @type selection_only: boolean @param capitalisation_mode: how to auto-capitalize input, valid values are found in L{capitalize()<Gnumed.pycommon.gmTools.capitalize>} @type capitalisation_mode: integer @param accepted_chars: a regex pattern defining the characters acceptable in the input string, if None no checking is performed @type accepted_chars: None or a string holding a valid regex pattern @param final_regex: when the control loses focus the input is checked against this regular expression @type final_regex: a string holding a valid regex pattern @param navigate_after_selection: whether or not to immediately navigate to the widget next-in-tab-order after selecting an item from the dropdown picklist @type navigate_after_selection: boolean @param speller: if not None used to spellcheck the current input and to retrieve suggested replacements/completions @type speller: None or a L{enchant Dict<enchant>} descendant @param picklist_delay: this much time of user inactivity must have passed before the input related smarts kick in and the drop down pick list is shown @type picklist_delay: integer (milliseconds)
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Class Variables | |
speller_word_separators = property(_get_speller_word_separator
|
|
static_tooltip_extra = property(_get_static_tt_extra, _set_sta
|
|
accepted_chars = property(_get_accepted_chars, _set_accepted_c
|
|
final_regex = property(_get_final_regex, _set_final_regex)
|
|
final_regex_error_msg = property(_get_final_regex_error_msg, _
|
|
data = property(_get_data, _set_data)
|
Method Details |
Retrieve the data associated with the displayed string(s). - self._create_data() must set self.data if possible (/successful) |
Add a callback for invocation when a picklist item is selected. The callback will be invoked whenever an item is selected from the picklist. The associated data is passed in as a single parameter. Callbacks must be able to cope with None as the data parameter as that is sent whenever the user changes a previously selected value. |
Add a callback for invocation when the content is modified. This callback will NOT be passed any values. |
Class Variable Details |
speller_word_separators
|
static_tooltip_extra
|
accepted_chars
|
final_regex_error_msg
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jul 23 01:55:31 2020 | http://epydoc.sourceforge.net |