PyInstallerInterface/Documentation/source/Plugin_Packager_PyInstaller.PyInstallerInterface.PyInstallerConfigDialog.html

branch
eric7
changeset 38
fc9ef9dcd51a
child 44
fca2c68606b8
equal deleted inserted replaced
37:9ecfea29a47c 38:fc9ef9dcd51a
1 <!DOCTYPE html>
2 <html><head>
3 <title>Plugin_Packager_PyInstaller.PyInstallerInterface.PyInstallerConfigDialog</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body>
22 <a NAME="top" ID="top"></a>
23 <h1>Plugin_Packager_PyInstaller.PyInstallerInterface.PyInstallerConfigDialog</h1>
24
25 <p>
26 Module implementing PyInstallerConfigDialog.
27 </p>
28 <h3>Global Attributes</h3>
29
30 <table>
31 <tr><td>None</td></tr>
32 </table>
33 <h3>Classes</h3>
34
35 <table>
36
37 <tr>
38 <td><a href="#PyInstallerConfigDialog">PyInstallerConfigDialog</a></td>
39 <td>Class implementing a dialog to enter the parameters for pyinstaller and pyi-makespec.</td>
40 </tr>
41 </table>
42 <h3>Functions</h3>
43
44 <table>
45 <tr><td>None</td></tr>
46 </table>
47 <hr />
48 <hr />
49 <a NAME="PyInstallerConfigDialog" ID="PyInstallerConfigDialog"></a>
50 <h2>PyInstallerConfigDialog</h2>
51
52 <p>
53 Class implementing a dialog to enter the parameters for pyinstaller
54 and pyi-makespec.
55 </p>
56 <h3>Derived from</h3>
57 QDialog, Ui_PyInstallerConfigDialog
58 <h3>Class Attributes</h3>
59
60 <table>
61 <tr><td>None</td></tr>
62 </table>
63 <h3>Class Methods</h3>
64
65 <table>
66 <tr><td>None</td></tr>
67 </table>
68 <h3>Methods</h3>
69
70 <table>
71
72 <tr>
73 <td><a href="#PyInstallerConfigDialog.__init__">PyInstallerConfigDialog</a></td>
74 <td>Constructor</td>
75 </tr>
76 <tr>
77 <td><a href="#PyInstallerConfigDialog.__initializeDefaults">__initializeDefaults</a></td>
78 <td>Private method to set the default values.</td>
79 </tr>
80 <tr>
81 <td><a href="#PyInstallerConfigDialog.__updateOkButton">__updateOkButton</a></td>
82 <td>Private method to update the enabled state of the OK button.</td>
83 </tr>
84 <tr>
85 <td><a href="#PyInstallerConfigDialog.accept">accept</a></td>
86 <td>Public method called by the Ok button.</td>
87 </tr>
88 <tr>
89 <td><a href="#PyInstallerConfigDialog.generateParameters">generateParameters</a></td>
90 <td>Public method that generates the command line parameters.</td>
91 </tr>
92 <tr>
93 <td><a href="#PyInstallerConfigDialog.on_iconFilePicker_textChanged">on_iconFilePicker_textChanged</a></td>
94 <td>Private slot to handle changes of the icon file.</td>
95 </tr>
96 <tr>
97 <td><a href="#PyInstallerConfigDialog.on_iconIdEdit_textChanged">on_iconIdEdit_textChanged</a></td>
98 <td>Private slot to handle changes of the icon ID.</td>
99 </tr>
100 <tr>
101 <td><a href="#PyInstallerConfigDialog.on_inputFilePicker_textChanged">on_inputFilePicker_textChanged</a></td>
102 <td>Private slot to handle changes of the input file.</td>
103 </tr>
104 <tr>
105 <td><a href="#PyInstallerConfigDialog.on_selectedScriptButton_toggled">on_selectedScriptButton_toggled</a></td>
106 <td>Private slot to handle changes of the radio button state.</td>
107 </tr>
108 </table>
109 <h3>Static Methods</h3>
110
111 <table>
112 <tr><td>None</td></tr>
113 </table>
114
115 <a NAME="PyInstallerConfigDialog.__init__" ID="PyInstallerConfigDialog.__init__"></a>
116 <h4>PyInstallerConfigDialog (Constructor)</h4>
117 <b>PyInstallerConfigDialog</b>(<i>project, executables, params=None, mode="installer", parent=None</i>)
118
119 <p>
120 Constructor
121 </p>
122 <dl>
123
124 <dt><i>project</i> (Project.Project)</dt>
125 <dd>
126 reference to the project object
127 </dd>
128 <dt><i>executables</i> (list of str)</dt>
129 <dd>
130 names of the pyinstaller executables
131 </dd>
132 <dt><i>params</i> (dict)</dt>
133 <dd>
134 parameters to set in the dialog
135 </dd>
136 <dt><i>mode</i> (str (one of 'installer' or 'spec'))</dt>
137 <dd>
138 mode of the dialog
139 </dd>
140 <dt><i>parent</i> (QWidget)</dt>
141 <dd>
142 reference to the parent widget
143 </dd>
144 </dl>
145 <a NAME="PyInstallerConfigDialog.__initializeDefaults" ID="PyInstallerConfigDialog.__initializeDefaults"></a>
146 <h4>PyInstallerConfigDialog.__initializeDefaults</h4>
147 <b>__initializeDefaults</b>(<i></i>)
148
149 <p>
150 Private method to set the default values.
151 </p>
152 <p>
153 These are needed later on to generate the command line parameters.
154 </p>
155 <a NAME="PyInstallerConfigDialog.__updateOkButton" ID="PyInstallerConfigDialog.__updateOkButton"></a>
156 <h4>PyInstallerConfigDialog.__updateOkButton</h4>
157 <b>__updateOkButton</b>(<i></i>)
158
159 <p>
160 Private method to update the enabled state of the OK button.
161 </p>
162 <a NAME="PyInstallerConfigDialog.accept" ID="PyInstallerConfigDialog.accept"></a>
163 <h4>PyInstallerConfigDialog.accept</h4>
164 <b>accept</b>(<i></i>)
165
166 <p>
167 Public method called by the Ok button.
168 </p>
169 <p>
170 It saves the values in the parameters dictionary.
171 </p>
172 <a NAME="PyInstallerConfigDialog.generateParameters" ID="PyInstallerConfigDialog.generateParameters"></a>
173 <h4>PyInstallerConfigDialog.generateParameters</h4>
174 <b>generateParameters</b>(<i></i>)
175
176 <p>
177 Public method that generates the command line parameters.
178 </p>
179 <p>
180 It generates a list of strings to be used to set the QProcess arguments
181 for the pyinstaller/pyi-makespec call and a list containing the non
182 default parameters. The second list can be passed back upon object
183 generation to overwrite the default settings.
184 </p>
185 <dl>
186 <dt>Return:</dt>
187 <dd>
188 a tuple of the command line parameters, non default parameters
189 and the script path
190 </dd>
191 </dl>
192 <dl>
193 <dt>Return Type:</dt>
194 <dd>
195 tuple of (list of str, dict, str)
196 </dd>
197 </dl>
198 <a NAME="PyInstallerConfigDialog.on_iconFilePicker_textChanged" ID="PyInstallerConfigDialog.on_iconFilePicker_textChanged"></a>
199 <h4>PyInstallerConfigDialog.on_iconFilePicker_textChanged</h4>
200 <b>on_iconFilePicker_textChanged</b>(<i>txt</i>)
201
202 <p>
203 Private slot to handle changes of the icon file.
204 </p>
205 <dl>
206
207 <dt><i>txt</i> (str)</dt>
208 <dd>
209 text of the file edit
210 </dd>
211 </dl>
212 <a NAME="PyInstallerConfigDialog.on_iconIdEdit_textChanged" ID="PyInstallerConfigDialog.on_iconIdEdit_textChanged"></a>
213 <h4>PyInstallerConfigDialog.on_iconIdEdit_textChanged</h4>
214 <b>on_iconIdEdit_textChanged</b>(<i>txt</i>)
215
216 <p>
217 Private slot to handle changes of the icon ID.
218 </p>
219 <dl>
220
221 <dt><i>txt</i> (str)</dt>
222 <dd>
223 iconID
224 </dd>
225 </dl>
226 <a NAME="PyInstallerConfigDialog.on_inputFilePicker_textChanged" ID="PyInstallerConfigDialog.on_inputFilePicker_textChanged"></a>
227 <h4>PyInstallerConfigDialog.on_inputFilePicker_textChanged</h4>
228 <b>on_inputFilePicker_textChanged</b>(<i>txt</i>)
229
230 <p>
231 Private slot to handle changes of the input file.
232 </p>
233 <dl>
234
235 <dt><i>txt</i> (str)</dt>
236 <dd>
237 text of the file edit
238 </dd>
239 </dl>
240 <a NAME="PyInstallerConfigDialog.on_selectedScriptButton_toggled" ID="PyInstallerConfigDialog.on_selectedScriptButton_toggled"></a>
241 <h4>PyInstallerConfigDialog.on_selectedScriptButton_toggled</h4>
242 <b>on_selectedScriptButton_toggled</b>(<i>checked</i>)
243
244 <p>
245 Private slot to handle changes of the radio button state.
246 </p>
247 <dl>
248
249 <dt><i>checked</i> (bool)</dt>
250 <dd>
251 state of the radio button
252 </dd>
253 </dl>
254 <div align="right"><a href="#top">Up</a></div>
255 <hr />
256 </body></html>

eric ide

mercurial