exopy.utils.widgets.qt_completers module¶
Widgets with support for text completion.
-
class
exopy.utils.widgets.qt_completers.QDelimitedCompleter(parent, delimiters, entries, entries_updater)[source]¶ Bases:
PyQt5.QtWidgets.QCompleterA custom completer to use with QtLineCompleter, QtTextEdit.
This completer only propose completion between specified characters.
- Parameters
parent (
QLineEditorQTextEdit) – Widget for which to provide a completion.delimiters (
tuple) – Tuple of length 2 specifying the characters marking the begining end of completion.entries (
iterable) – Iterable of values used to propose completion.entries_updaters (
callable) – Callable used to refresh the list of entries called once for the first completion after the widget gained focus.
-
completionNeeded¶
-
class
exopy.utils.widgets.qt_completers.QtLineCompleter(parent=None, **kwargs)[source]¶ Bases:
enaml.widgets.raw_widget.RawWidgetSimple line editor supporting completion.
-
text¶ Text being edited by this widget.
-
entries¶ Static list of entries used to propose completion. This member value is not updated by the entries_updater.
-
entries_updater¶ Callable to use to refresh the completions.
-
delimiters¶ Delimiters marking the begining and end of completed section.
-
hug_width= 'ignore'¶
-
features= <enum: Feature.FocusEvents [value=2]>¶
-
w¶
-
e¶
-
a¶
-
k¶
-
r¶
-
f¶
-
-
class
exopy.utils.widgets.qt_completers.QCompletableTexEdit[source]¶ Bases:
PyQt5.QtWidgets.QTextEditA QTextEdit letting the completer handles key presses when visible.
-
completer¶
-
-
class
exopy.utils.widgets.qt_completers.QtTextCompleter(parent=None, **kwargs)[source]¶ Bases:
enaml.widgets.raw_widget.RawWidgetSimple text editor supporting completion.
-
text¶ Text being edited by this widget.
-
entries¶ Static list of entries used to propose completion. This member value is not updated by the entries_updater.
-
entries_updater¶ Callable to use to refresh the completions.
-
delimiters¶ Delimiters marking the begining and end of completed section.
-
hug_width= 'ignore'¶
-
features= <enum: Feature.FocusEvents [value=2]>¶
-
w¶
-
e¶
-
a¶
-
k¶
-
r¶
-
f¶
-