GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing docs.wxpython.org — wx.TextCompleterSimple — wxPython 4.3.2 Docs
|
Pure virtual method returning all possible completions for the given prefix. |
|
Called to retrieve the next completion. |
|
Function called to start iteration over the completions for the given prefix. |
Properties Summary¶See |
Class API¶A simpler base class for custom completer objects.
Pure virtual method returning all possible completions for the given prefix.
The custom completer should examine the provided prefix and return all the possible completions for it in the output array res.
Please notice that the returned values should start with the prefix, otherwise they will be simply ignored, making adding them to the array in the first place useless.
Notice that this function may be called from thread other than main one (this is currently always the case under MSW) so the appropriate synchronization mechanism should be used to protect the shared data.
prefix (string) – The possibly empty prefix that the user had already entered.
List[str]
Called to retrieve the next completion.
All completions returned by this function should start with the prefix passed to the last call to Start .
Notice that, as Start , this method is called from a worker thread context under MSW.
str
The next completion or an empty string to indicate that there are no more of them.
Function called to start iteration over the completions for the given prefix.
This function could start a database query, for example, if the results are read from a database.
Notice that under some platforms (currently MSW only) it is called from another thread context and so the appropriate synchronization mechanism should be used to access any data also used by the main UI thread.