PathEdit(parent=None, path_type=<PathType.Files: 1>, default_path=None, dialog_caption=None, show_revert=True)¶
PathEditclass subclasses QWidget to create a custom widget for use when a file or directory needs to be selected.
A handler to handle a click on the browse button.
Show the QFileDialog and process the input from the user :return: None
A handler to handle when the line edit has finished being edited. :return: None
A method called to validate and set a new path.
Emits the pathChanged Signal
Parameters: path (str) – The new path Returns: None
A handler to handle a click on the revert button.
Set the new path to the value of the default_path instance variable. :return: None
A property getter method to return the selected path.
Returns: The selected path Return type: str
A property getter method to return the path_type. Path type allows you to sepecify if the user is restricted to selecting a file or directory.
Returns: The type selected Return type: Enum of PathEdit
Called to update the tooltips on the buttons. This is changing path types, and when the widget is initalised :return: None