src/eric7/Documentation/Source/eric7.EricWidgets.EricPathPickerDialog.html

Fri, 27 Oct 2023 14:09:40 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 27 Oct 2023 14:09:40 +0200
branch
eric7
changeset 10259
b51dfacef37f
parent 9238
a7cbf3d61498
child 10479
856476537696
permissions
-rw-r--r--

Regenerated the source documentation with the corrected module parser.

<!DOCTYPE html>
<html><head>
<title>eric7.EricWidgets.EricPathPickerDialog</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.EricWidgets.EricPathPickerDialog</h1>

<p>
Module implementing a dialog to enter a file system path using a file picker.
</p>
<h3>Global Attributes</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>

<table>

<tr>
<td><a href="#EricPathPickerDialog">EricPathPickerDialog</a></td>
<td>Class implementing a dialog to enter a file system path using a file picker.</td>
</tr>
</table>
<h3>Functions</h3>

<table>

<tr>
<td><a href="#getPath">getPath</a></td>
<td>Function to get a file or directory path from the user.</td>
</tr>
<tr>
<td><a href="#getStrPath">getStrPath</a></td>
<td>Function to get a file or directory path from the user.</td>
</tr>
</table>
<hr />
<hr />
<a NAME="EricPathPickerDialog" ID="EricPathPickerDialog"></a>
<h2>EricPathPickerDialog</h2>

<p>
    Class implementing a dialog to enter a file system path using a file
    picker.
</p>
<h3>Derived from</h3>
QDialog
<h3>Class Attributes</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Class Methods</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>

<table>

<tr>
<td><a href="#EricPathPickerDialog.__init__">EricPathPickerDialog</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#EricPathPickerDialog.getPath">getPath</a></td>
<td>Public method to get the current path as a pathlib.Path object.</td>
</tr>
<tr>
<td><a href="#EricPathPickerDialog.getText">getText</a></td>
<td>Public method to get the current path as text.</td>
</tr>
<tr>
<td><a href="#EricPathPickerDialog.setDefaultDirectory">setDefaultDirectory</a></td>
<td>Public method to set the default directory of the path picker.</td>
</tr>
<tr>
<td><a href="#EricPathPickerDialog.setLabelText">setLabelText</a></td>
<td>Public method to set the label text.</td>
</tr>
<tr>
<td><a href="#EricPathPickerDialog.setPickerFilters">setPickerFilters</a></td>
<td>Public method to set the filters of the path picker.</td>
</tr>
<tr>
<td><a href="#EricPathPickerDialog.setPickerMode">setPickerMode</a></td>
<td>Public method to set the mode of the path picker.</td>
</tr>
<tr>
<td><a href="#EricPathPickerDialog.setPickerPath">setPickerPath</a></td>
<td>Public method to set the path of the path picker.</td>
</tr>
<tr>
<td><a href="#EricPathPickerDialog.setTitle">setTitle</a></td>
<td>Public method to set the window title.</td>
</tr>
</table>
<h3>Static Methods</h3>

<table>
<tr><td>None</td></tr>
</table>

<a NAME="EricPathPickerDialog.__init__" ID="EricPathPickerDialog.__init__"></a>
<h4>EricPathPickerDialog (Constructor)</h4>
<b>EricPathPickerDialog</b>(<i>parent=None</i>)

<p>
        Constructor
</p>
<dl>

<dt><i>parent</i> (QWidget)</dt>
<dd>
reference to the parent widget
</dd>
</dl>
<a NAME="EricPathPickerDialog.getPath" ID="EricPathPickerDialog.getPath"></a>
<h4>EricPathPickerDialog.getPath</h4>
<b>getPath</b>(<i></i>)

<p>
        Public method to get the current path as a pathlib.Path object.
</p>
<dl>
<dt>Return:</dt>
<dd>
current path
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
pathlib.Path
</dd>
</dl>
<a NAME="EricPathPickerDialog.getText" ID="EricPathPickerDialog.getText"></a>
<h4>EricPathPickerDialog.getText</h4>
<b>getText</b>(<i></i>)

<p>
        Public method to get the current path as text.
</p>
<dl>
<dt>Return:</dt>
<dd>
current path
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
str
</dd>
</dl>
<a NAME="EricPathPickerDialog.setDefaultDirectory" ID="EricPathPickerDialog.setDefaultDirectory"></a>
<h4>EricPathPickerDialog.setDefaultDirectory</h4>
<b>setDefaultDirectory</b>(<i>directory</i>)

<p>
        Public method to set the default directory of the path picker.
</p>
<dl>

<dt><i>directory</i> (str or pathlib.Path)</dt>
<dd>
default directory
</dd>
</dl>
<a NAME="EricPathPickerDialog.setLabelText" ID="EricPathPickerDialog.setLabelText"></a>
<h4>EricPathPickerDialog.setLabelText</h4>
<b>setLabelText</b>(<i>text</i>)

<p>
        Public method to set the label text.
</p>
<dl>

<dt><i>text</i> (str)</dt>
<dd>
label text
</dd>
</dl>
<a NAME="EricPathPickerDialog.setPickerFilters" ID="EricPathPickerDialog.setPickerFilters"></a>
<h4>EricPathPickerDialog.setPickerFilters</h4>
<b>setPickerFilters</b>(<i>filters</i>)

<p>
        Public method to set the filters of the path picker.
</p>
<p>
        Note: Multiple filters must be separated by ';;'.
</p>
<dl>

<dt><i>filters</i> (str)</dt>
<dd>
string containing the file filters
</dd>
</dl>
<a NAME="EricPathPickerDialog.setPickerMode" ID="EricPathPickerDialog.setPickerMode"></a>
<h4>EricPathPickerDialog.setPickerMode</h4>
<b>setPickerMode</b>(<i>mode</i>)

<p>
        Public method to set the mode of the path picker.
</p>
<dl>

<dt><i>mode</i> (EricPathPickerModes)</dt>
<dd>
picker mode
</dd>
</dl>
<a NAME="EricPathPickerDialog.setPickerPath" ID="EricPathPickerDialog.setPickerPath"></a>
<h4>EricPathPickerDialog.setPickerPath</h4>
<b>setPickerPath</b>(<i>fpath</i>)

<p>
        Public method to set the path of the path picker.
</p>
<dl>

<dt><i>fpath</i> (str or pathlib.Path)</dt>
<dd>
path to be set
</dd>
</dl>
<a NAME="EricPathPickerDialog.setTitle" ID="EricPathPickerDialog.setTitle"></a>
<h4>EricPathPickerDialog.setTitle</h4>
<b>setTitle</b>(<i>title</i>)

<p>
        Public method to set the window title.
</p>
<dl>

<dt><i>title</i> (str)</dt>
<dd>
window title
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="getPath" ID="getPath"></a>
<h2>getPath</h2>
<b>getPath</b>(<i>parent, title, label, mode=EricPathPickerModes.OPEN_FILE_MODE, pathlibPath=None, defaultDirectory=None, filters=None, </i>)

<p>
    Function to get a file or directory path from the user.
</p>
<dl>

<dt><i>parent</i> (QWidget)</dt>
<dd>
reference to the parent widget
</dd>
<dt><i>title</i> (str)</dt>
<dd>
title of the dialog
</dd>
<dt><i>label</i> (str)</dt>
<dd>
text to be shown above the path picker
</dd>
<dt><i>mode</i> (EricPathPickerModes (optional))</dt>
<dd>
mode of the path picker (defaults to EricPathPickerModes.OPEN_FILE_MODE)
</dd>
<dt><i>pathlibPath</i> (pathlib.Path (optional))</dt>
<dd>
initial path to be shown (defaults to None)
</dd>
<dt><i>defaultDirectory</i> (pathlib.Path (optional))</dt>
<dd>
default directory of the path picker selection
        dialog (defaults to None)
</dd>
<dt><i>filters</i> (list of str (optional))</dt>
<dd>
list of file filters (defaults to None)
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
tuple containing the entered path and a flag indicating that the
        user pressed the OK button
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
tuple of (pathlib.Path, bool)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="getStrPath" ID="getStrPath"></a>
<h2>getStrPath</h2>
<b>getStrPath</b>(<i>parent, title, label, mode=EricPathPickerModes.OPEN_FILE_MODE, strPath=None, defaultDirectory=None, filters=None, </i>)

<p>
    Function to get a file or directory path from the user.
</p>
<dl>

<dt><i>parent</i> (QWidget)</dt>
<dd>
reference to the parent widget
</dd>
<dt><i>title</i> (str)</dt>
<dd>
title of the dialog
</dd>
<dt><i>label</i> (str)</dt>
<dd>
text to be shown above the path picker
</dd>
<dt><i>mode</i> (EricPathPickerModes (optional))</dt>
<dd>
mode of the path picker (defaults to EricPathPickerModes.OPEN_FILE_MODE)
</dd>
<dt><i>strPath</i> (str (optional))</dt>
<dd>
initial path to be shown (defaults to None)
</dd>
<dt><i>defaultDirectory</i> (str (optional))</dt>
<dd>
default directory of the path picker selection
        dialog (defaults to None)
</dd>
<dt><i>filters</i> (list of str (optional))</dt>
<dd>
list of file filters (defaults to None)
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
tuple containing the entered path and a flag indicating that the
        user pressed the OK button
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
tuple of (str, bool)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial