|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.PipInterface.PipFileSelectionDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.PipInterface.PipFileSelectionDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a dialog to enter a file to be processed. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#PipFileSelectionDialog">PipFileSelectionDialog</a></td> |
|
25 <td>Class implementing a dialog to enter a file to be processed.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="PipFileSelectionDialog" ID="PipFileSelectionDialog"></a> |
|
36 <h2>PipFileSelectionDialog</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a dialog to enter a file to be processed. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QDialog, Ui_PipFileSelectionDialog |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#PipFileSelectionDialog.__init__">PipFileSelectionDialog</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#PipFileSelectionDialog.getData">getData</a></td> |
|
63 <td>Public method to get the entered data.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#PipFileSelectionDialog.on_filePicker_textChanged">on_filePicker_textChanged</a></td> |
|
67 <td>Private slot to handle entering the name of a file.</td> |
|
68 </tr> |
|
69 </table> |
|
70 <h3>Static Methods</h3> |
|
71 |
|
72 <table> |
|
73 <tr><td>None</td></tr> |
|
74 </table> |
|
75 |
|
76 <a NAME="PipFileSelectionDialog.__init__" ID="PipFileSelectionDialog.__init__"></a> |
|
77 <h4>PipFileSelectionDialog (Constructor)</h4> |
|
78 <b>PipFileSelectionDialog</b>(<i>pip, mode, install=True, parent=None</i>) |
|
79 |
|
80 <p> |
|
81 Constructor |
|
82 </p> |
|
83 <dl> |
|
84 |
|
85 <dt><i>pip</i> (Pip)</dt> |
|
86 <dd> |
|
87 reference to the pip object |
|
88 </dd> |
|
89 <dt><i>mode</i> (str)</dt> |
|
90 <dd> |
|
91 mode of the dialog |
|
92 </dd> |
|
93 <dt><i>install</i> (bool)</dt> |
|
94 <dd> |
|
95 flag indicating an install action |
|
96 </dd> |
|
97 <dt><i>parent</i> (QWidget)</dt> |
|
98 <dd> |
|
99 reference to the parent widget |
|
100 </dd> |
|
101 </dl> |
|
102 <a NAME="PipFileSelectionDialog.getData" ID="PipFileSelectionDialog.getData"></a> |
|
103 <h4>PipFileSelectionDialog.getData</h4> |
|
104 <b>getData</b>(<i></i>) |
|
105 |
|
106 <p> |
|
107 Public method to get the entered data. |
|
108 </p> |
|
109 <dl> |
|
110 <dt>Return:</dt> |
|
111 <dd> |
|
112 tuple with the name of the selected file and a flag indicating |
|
113 to install to the user install directory |
|
114 </dd> |
|
115 </dl> |
|
116 <dl> |
|
117 <dt>Return Type:</dt> |
|
118 <dd> |
|
119 tuple of (str, bool) |
|
120 </dd> |
|
121 </dl> |
|
122 <a NAME="PipFileSelectionDialog.on_filePicker_textChanged" ID="PipFileSelectionDialog.on_filePicker_textChanged"></a> |
|
123 <h4>PipFileSelectionDialog.on_filePicker_textChanged</h4> |
|
124 <b>on_filePicker_textChanged</b>(<i>txt</i>) |
|
125 |
|
126 <p> |
|
127 Private slot to handle entering the name of a file. |
|
128 </p> |
|
129 <dl> |
|
130 |
|
131 <dt><i>txt</i> (str)</dt> |
|
132 <dd> |
|
133 name of the file |
|
134 </dd> |
|
135 </dl> |
|
136 <div align="right"><a href="#top">Up</a></div> |
|
137 <hr /> |
|
138 </body></html> |