8.6.5.1.4. pymodaq_gui.parameter.pymodaq_ptypes.filedir module
- class pymodaq_gui.parameter.pymodaq_ptypes.filedir.FileDirParameter(**opts)[source]
Bases:
ParameterEditable string; displayed as large text box in the tree. .. seealso::
file_browserParameterItemMethods
itemClass
- itemClass
alias of
FileDirParameterItem
- staticMetaObject = PySide6.QtCore.QMetaObject("FileDirParameter" inherits "Parameter": )
- class pymodaq_gui.parameter.pymodaq_ptypes.filedir.FileDirParameterItem(param, depth)[source]
Bases:
WidgetParameterItemMethods
Make an initialized file_browser object with parameter options dictionnary ('readonly' key)0
- class pymodaq_gui.parameter.pymodaq_ptypes.filedir.FileDirWidget(init_path='D:/Data', file_type=False, filter='')[source]
Bases:
QWidgetAttributes
Type
value_changed
instance of pyqt Signal
path
string
See also
Methods
Browse the path attribute if exist.
Get the value of the base_path_edit attribute.
initUI()Init the User Interface.
setReadOnly(readonly)Lock only the text field; the browse button stays clickable regardless.
set_path(path_file)Set the base path attribute with the given path_file.
value_changed
- get_value()[source]
Get the value of the base_path_edit attribute.
- Returns:
the path name
- Return type:
string
- setReadOnly(readonly)[source]
Lock only the text field; the browse button stays clickable regardless.
Without this, pyqtgraph’s generic WidgetParameterItem.optsChanged() falls back to disabling the whole widget on ‘readonly’ (no setReadOnly means no fine-grained control), which also greys out the browse button – not just the text edit.
- set_path(path_file)[source]
Set the base path attribute with the given path_file.
Parameters
Type
Description
path_file
string
the pathname of the file
- staticMetaObject = PySide6.QtCore.QMetaObject("FileDirWidget" inherits "QWidget": Methods: #33 type=Signal, signature=value_changed(QString), parameters=QString )
- value_changed