7.5.4.1.12. pymodaq_gui.parameter.pymodaq_ptypes.text module
- class pymodaq_gui.parameter.pymodaq_ptypes.text.PlainTextParameterItem(param, depth)[source]
Bases:
WidgetParameterItemMethods
Make and initialize an instance of Plain_text_pb object from parameter options dictionnary (using 'readonly' key).
Called when this item is added or removed from a tree.
buttonClicked
- makeWidget()[source]
Make and initialize an instance of Plain_text_pb object from parameter options dictionnary (using ‘readonly’ key).
- Returns:
The initialized object.
- Return type:
Plain_text_pb object
See also
Plain_text_pb,buttonClicked
- class pymodaq_gui.parameter.pymodaq_ptypes.text.PlainTextPbParameter(**opts)[source]
Bases:
ParameterEditable string; displayed as large text box in the tree.
Methods
activate()Send the Activated signal.
itemClass
sigActivated
- itemClass
alias of
PlainTextParameterItem
- sigActivated
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- class pymodaq_gui.parameter.pymodaq_ptypes.text.PlainTextWidget[source]
Bases:
QWidgetAttributes
Type
value_changed
instance of pyqt Signal
See also
Methods
Emit the value changed signal from the text_edit attribute.
Get the value of the text_edit attribute.
initUI()Init the User Interface.
set_value(txt)Set the value of the text_edit attribute.
value_changed
- get_value()[source]
Get the value of the text_edit attribute.
- Returns:
The string value of text_edit.
- Return type:
string
- set_value(txt)[source]
Set the value of the text_edit attribute.
Parameters
Type
Description
txt
string
the string value to be setted
- value_changed
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision