PyInstaller/Documentation/source/Plugin_Packager_PyInstaller.PyInstaller.PyInstallerConfigDialog.html

changeset 9
43ef722c3873
child 28
3c8dbc198753
equal deleted inserted replaced
8:ba5a623378ec 9:43ef722c3873
1 <!DOCTYPE html>
2 <html><head>
3 <title>Plugin_Packager_PyInstaller.PyInstaller.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><a NAME="top" ID="top"></a>
22 <h1>Plugin_Packager_PyInstaller.PyInstaller.PyInstallerConfigDialog</h1>
23 <p>
24 Module implementing PyInstallerConfigDialog.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#PyInstallerConfigDialog">PyInstallerConfigDialog</a></td>
34 <td>Class implementing a dialog to enter the parameters for pyinstaller and pyi-makespec.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="PyInstallerConfigDialog" ID="PyInstallerConfigDialog"></a>
43 <h2>PyInstallerConfigDialog</h2>
44 <p>
45 Class implementing a dialog to enter the parameters for pyinstaller
46 and pyi-makespec.
47 </p>
48 <h3>Derived from</h3>
49 QDialog, Ui_PyInstallerConfigDialog
50 <h3>Class Attributes</h3>
51 <table>
52 <tr><td>None</td></tr>
53 </table>
54 <h3>Class Methods</h3>
55 <table>
56 <tr><td>None</td></tr>
57 </table>
58 <h3>Methods</h3>
59 <table>
60 <tr>
61 <td><a href="#PyInstallerConfigDialog.__init__">PyInstallerConfigDialog</a></td>
62 <td>Constructor</td>
63 </tr><tr>
64 <td><a href="#PyInstallerConfigDialog.__initializeDefaults">__initializeDefaults</a></td>
65 <td>Private method to set the default values.</td>
66 </tr><tr>
67 <td><a href="#PyInstallerConfigDialog.__updateOkButton">__updateOkButton</a></td>
68 <td>Private method to update the enabled state of the OK button.</td>
69 </tr><tr>
70 <td><a href="#PyInstallerConfigDialog.accept">accept</a></td>
71 <td>Public method called by the Ok button.</td>
72 </tr><tr>
73 <td><a href="#PyInstallerConfigDialog.generateParameters">generateParameters</a></td>
74 <td>Public method that generates the command line parameters.</td>
75 </tr><tr>
76 <td><a href="#PyInstallerConfigDialog.on_iconFilePicker_textChanged">on_iconFilePicker_textChanged</a></td>
77 <td>Private slot to handle changes of the icon file.</td>
78 </tr><tr>
79 <td><a href="#PyInstallerConfigDialog.on_iconIdEdit_textChanged">on_iconIdEdit_textChanged</a></td>
80 <td>Private slot to handle changes of the icon ID.</td>
81 </tr><tr>
82 <td><a href="#PyInstallerConfigDialog.on_inputFilePicker_textChanged">on_inputFilePicker_textChanged</a></td>
83 <td>Private slot to handle changes of the input file.</td>
84 </tr><tr>
85 <td><a href="#PyInstallerConfigDialog.on_selectedScriptButton_toggled">on_selectedScriptButton_toggled</a></td>
86 <td>Private slot to handle changes of the radio button state.</td>
87 </tr>
88 </table>
89 <h3>Static Methods</h3>
90 <table>
91 <tr><td>None</td></tr>
92 </table>
93 <a NAME="PyInstallerConfigDialog.__init__" ID="PyInstallerConfigDialog.__init__"></a>
94 <h4>PyInstallerConfigDialog (Constructor)</h4>
95 <b>PyInstallerConfigDialog</b>(<i>project, executables, params=None, mode="installer", parent=None</i>)
96 <p>
97 Constructor
98 </p><dl>
99 <dt><i>project</i> (Project.Project)</dt>
100 <dd>
101 reference to the project object
102 </dd><dt><i>executables</i> (list of str)</dt>
103 <dd>
104 names of the pyinstaller executables
105 </dd><dt><i>params</i> (dict)</dt>
106 <dd>
107 parameters to set in the dialog
108 </dd><dt><i>mode</i> (str (one of 'installer' or 'spec'))</dt>
109 <dd>
110 mode of the dialog
111 </dd><dt><i>parent</i> (QWidget)</dt>
112 <dd>
113 reference to the parent widget
114 </dd>
115 </dl><a NAME="PyInstallerConfigDialog.__initializeDefaults" ID="PyInstallerConfigDialog.__initializeDefaults"></a>
116 <h4>PyInstallerConfigDialog.__initializeDefaults</h4>
117 <b>__initializeDefaults</b>(<i></i>)
118 <p>
119 Private method to set the default values.
120 </p><p>
121 These are needed later on to generate the command line parameters.
122 </p><a NAME="PyInstallerConfigDialog.__updateOkButton" ID="PyInstallerConfigDialog.__updateOkButton"></a>
123 <h4>PyInstallerConfigDialog.__updateOkButton</h4>
124 <b>__updateOkButton</b>(<i></i>)
125 <p>
126 Private method to update the enabled state of the OK button.
127 </p><a NAME="PyInstallerConfigDialog.accept" ID="PyInstallerConfigDialog.accept"></a>
128 <h4>PyInstallerConfigDialog.accept</h4>
129 <b>accept</b>(<i></i>)
130 <p>
131 Public method called by the Ok button.
132 </p><p>
133 It saves the values in the parameters dictionary.
134 </p><a NAME="PyInstallerConfigDialog.generateParameters" ID="PyInstallerConfigDialog.generateParameters"></a>
135 <h4>PyInstallerConfigDialog.generateParameters</h4>
136 <b>generateParameters</b>(<i></i>)
137 <p>
138 Public method that generates the command line parameters.
139 </p><p>
140 It generates a list of strings to be used to set the QProcess arguments
141 for the pyinstaller/pyi-makespec call and a list containing the non
142 default parameters. The second list can be passed back upon object
143 generation to overwrite the default settings.
144 </p><dl>
145 <dt>Returns:</dt>
146 <dd>
147 a tuple of the command line parameters, non default parameters
148 and the script path
149 </dd>
150 </dl><dl>
151 <dt>Return Type:</dt>
152 <dd>
153 tuple of (list of str, dict, str)
154 </dd>
155 </dl><a NAME="PyInstallerConfigDialog.on_iconFilePicker_textChanged" ID="PyInstallerConfigDialog.on_iconFilePicker_textChanged"></a>
156 <h4>PyInstallerConfigDialog.on_iconFilePicker_textChanged</h4>
157 <b>on_iconFilePicker_textChanged</b>(<i>txt</i>)
158 <p>
159 Private slot to handle changes of the icon file.
160 </p><dl>
161 <dt><i>txt</i> (str)</dt>
162 <dd>
163 text of the file edit
164 </dd>
165 </dl><a NAME="PyInstallerConfigDialog.on_iconIdEdit_textChanged" ID="PyInstallerConfigDialog.on_iconIdEdit_textChanged"></a>
166 <h4>PyInstallerConfigDialog.on_iconIdEdit_textChanged</h4>
167 <b>on_iconIdEdit_textChanged</b>(<i>txt</i>)
168 <p>
169 Private slot to handle changes of the icon ID.
170 </p><dl>
171 <dt><i>txt</i> (str)</dt>
172 <dd>
173 iconID
174 </dd>
175 </dl><a NAME="PyInstallerConfigDialog.on_inputFilePicker_textChanged" ID="PyInstallerConfigDialog.on_inputFilePicker_textChanged"></a>
176 <h4>PyInstallerConfigDialog.on_inputFilePicker_textChanged</h4>
177 <b>on_inputFilePicker_textChanged</b>(<i>txt</i>)
178 <p>
179 Private slot to handle changes of the input file.
180 </p><dl>
181 <dt><i>txt</i> (str)</dt>
182 <dd>
183 text of the file edit
184 </dd>
185 </dl><a NAME="PyInstallerConfigDialog.on_selectedScriptButton_toggled" ID="PyInstallerConfigDialog.on_selectedScriptButton_toggled"></a>
186 <h4>PyInstallerConfigDialog.on_selectedScriptButton_toggled</h4>
187 <b>on_selectedScriptButton_toggled</b>(<i>checked</i>)
188 <p>
189 Private slot to handle changes of the radio button state.
190 </p><dl>
191 <dt><i>checked</i> (bool)</dt>
192 <dd>
193 state of the radio button
194 </dd>
195 </dl>
196 <div align="right"><a href="#top">Up</a></div>
197 <hr />
198 </body></html>

eric ide

mercurial