8.5.4.1.3. pymodaq_gui.parameter.pymodaq_ptypes.filedir module

class pymodaq_gui.parameter.pymodaq_ptypes.filedir.FileDirParameter(**opts)[source]

Bases: Parameter

Editable string; displayed as large text box in the tree. .. seealso:: file_browserParameterItem

Methods

itemClass

itemClass

alias of FileDirParameterItem

class pymodaq_gui.parameter.pymodaq_ptypes.filedir.FileDirParameterItem(param, depth)[source]

Bases: WidgetParameterItem

Methods

makeWidget()

Make an initialized file_browser object with parameter options dictionnary ('readonly' key)0

makeWidget()[source]

Make an initialized file_browser object with parameter options dictionnary (‘readonly’ key)0

Returns:

w – The initialized file browser.

Return type:

filebrowser

See also

file_browser

class pymodaq_gui.parameter.pymodaq_ptypes.filedir.FileDirWidget(*args: Any, **kwargs: Any)[source]

Bases: QWidget

Attributes

Type

value_changed

instance of pyqt Signal

path

string

See also

browse_path

Methods

browse_path()

Browse the path attribute if exist.

get_value()

Get the value of the base_path_edit attribute.

initUI()

Init the User Interface.

set_path(path_file)

Set the base path attribute with the given path_file.

value_changed

browse_path()[source]

Browse the path attribute if exist.

See also

set_path

get_value()[source]

Get the value of the base_path_edit attribute.

Returns:

the path name

Return type:

string

initUI()[source]

Init the User Interface.

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