Documentation/Source/eric6.Plugins.UiExtensionPlugins.PipInterface.PipDialog.html

changeset 6011
e6af0dcfbb35
child 6343
86cea8abd0f7
equal deleted inserted replaced
6010:7ef7d47a0ad5 6011:e6af0dcfbb35
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.Plugins.UiExtensionPlugins.PipInterface.PipDialog</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>eric6.Plugins.UiExtensionPlugins.PipInterface.PipDialog</h1>
23 <p>
24 Module implementing a dialog showing the output of a pip command.
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="#PipDialog">PipDialog</a></td>
34 <td>Class implementing a dialog showing the output of a pip command.</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="PipDialog" ID="PipDialog"></a>
43 <h2>PipDialog</h2>
44 <p>
45 Class implementing a dialog showing the output of a pip command.
46 </p>
47 <h3>Derived from</h3>
48 QDialog, Ui_PipDialog
49 <h3>Class Attributes</h3>
50 <table>
51 <tr><td>None</td></tr>
52 </table>
53 <h3>Class Methods</h3>
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Methods</h3>
58 <table>
59 <tr>
60 <td><a href="#PipDialog.__init__">PipDialog</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#PipDialog.__addOutput">__addOutput</a></td>
64 <td>Private method to add some text to the output pane.</td>
65 </tr><tr>
66 <td><a href="#PipDialog.__finish">__finish</a></td>
67 <td>Private slot called when the process finished or the user pressed the button.</td>
68 </tr><tr>
69 <td><a href="#PipDialog.__procFinished">__procFinished</a></td>
70 <td>Private slot connected to the finished signal.</td>
71 </tr><tr>
72 <td><a href="#PipDialog.__readStderr">__readStderr</a></td>
73 <td>Private slot to handle the readyReadStandardError signal.</td>
74 </tr><tr>
75 <td><a href="#PipDialog.__readStdout">__readStdout</a></td>
76 <td>Private slot to handle the readyReadStandardOutput signal.</td>
77 </tr><tr>
78 <td><a href="#PipDialog.closeEvent">closeEvent</a></td>
79 <td>Protected slot implementing a close event handler.</td>
80 </tr><tr>
81 <td><a href="#PipDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td>
82 <td>Private slot called by a button of the button box clicked.</td>
83 </tr><tr>
84 <td><a href="#PipDialog.startProcess">startProcess</a></td>
85 <td>Public slot used to start the process.</td>
86 </tr><tr>
87 <td><a href="#PipDialog.startProcesses">startProcesses</a></td>
88 <td>Public method to issue a list of commands to be executed.</td>
89 </tr>
90 </table>
91 <h3>Static Methods</h3>
92 <table>
93 <tr><td>None</td></tr>
94 </table>
95 <a NAME="PipDialog.__init__" ID="PipDialog.__init__"></a>
96 <h4>PipDialog (Constructor)</h4>
97 <b>PipDialog</b>(<i>text, parent=None</i>)
98 <p>
99 Constructor
100 </p><dl>
101 <dt><i>text</i></dt>
102 <dd>
103 text to be shown by the label (string)
104 </dd><dt><i>parent</i></dt>
105 <dd>
106 reference to the parent widget (QWidget)
107 </dd>
108 </dl><a NAME="PipDialog.__addOutput" ID="PipDialog.__addOutput"></a>
109 <h4>PipDialog.__addOutput</h4>
110 <b>__addOutput</b>(<i>txt</i>)
111 <p>
112 Private method to add some text to the output pane.
113 </p><dl>
114 <dt><i>txt</i> (str)</dt>
115 <dd>
116 text to be added
117 </dd>
118 </dl><a NAME="PipDialog.__finish" ID="PipDialog.__finish"></a>
119 <h4>PipDialog.__finish</h4>
120 <b>__finish</b>(<i></i>)
121 <p>
122 Private slot called when the process finished or the user pressed
123 the button.
124 </p><a NAME="PipDialog.__procFinished" ID="PipDialog.__procFinished"></a>
125 <h4>PipDialog.__procFinished</h4>
126 <b>__procFinished</b>(<i>exitCode, exitStatus</i>)
127 <p>
128 Private slot connected to the finished signal.
129 </p><dl>
130 <dt><i>exitCode</i></dt>
131 <dd>
132 exit code of the process (integer)
133 </dd><dt><i>exitStatus</i></dt>
134 <dd>
135 exit status of the process (QProcess.ExitStatus)
136 </dd>
137 </dl><a NAME="PipDialog.__readStderr" ID="PipDialog.__readStderr"></a>
138 <h4>PipDialog.__readStderr</h4>
139 <b>__readStderr</b>(<i></i>)
140 <p>
141 Private slot to handle the readyReadStandardError signal.
142 </p><p>
143 It reads the error output of the process and inserts it into the
144 error pane.
145 </p><a NAME="PipDialog.__readStdout" ID="PipDialog.__readStdout"></a>
146 <h4>PipDialog.__readStdout</h4>
147 <b>__readStdout</b>(<i></i>)
148 <p>
149 Private slot to handle the readyReadStandardOutput signal.
150 </p><p>
151 It reads the output of the process, formats it and inserts it into
152 the contents pane.
153 </p><a NAME="PipDialog.closeEvent" ID="PipDialog.closeEvent"></a>
154 <h4>PipDialog.closeEvent</h4>
155 <b>closeEvent</b>(<i>e</i>)
156 <p>
157 Protected slot implementing a close event handler.
158 </p><dl>
159 <dt><i>e</i></dt>
160 <dd>
161 close event (QCloseEvent)
162 </dd>
163 </dl><a NAME="PipDialog.on_buttonBox_clicked" ID="PipDialog.on_buttonBox_clicked"></a>
164 <h4>PipDialog.on_buttonBox_clicked</h4>
165 <b>on_buttonBox_clicked</b>(<i>button</i>)
166 <p>
167 Private slot called by a button of the button box clicked.
168 </p><dl>
169 <dt><i>button</i></dt>
170 <dd>
171 button that was clicked (QAbstractButton)
172 </dd>
173 </dl><a NAME="PipDialog.startProcess" ID="PipDialog.startProcess"></a>
174 <h4>PipDialog.startProcess</h4>
175 <b>startProcess</b>(<i>cmd, args, showArgs=True</i>)
176 <p>
177 Public slot used to start the process.
178 </p><dl>
179 <dt><i>cmd</i></dt>
180 <dd>
181 name of the pip executable to be used (string)
182 </dd><dt><i>args</i></dt>
183 <dd>
184 list of arguments for the process (list of strings)
185 </dd><dt><i>showArgs=</i></dt>
186 <dd>
187 flag indicating to show the arguments (boolean)
188 </dd>
189 </dl><dl>
190 <dt>Returns:</dt>
191 <dd>
192 flag indicating a successful start of the process
193 </dd>
194 </dl><a NAME="PipDialog.startProcesses" ID="PipDialog.startProcesses"></a>
195 <h4>PipDialog.startProcesses</h4>
196 <b>startProcesses</b>(<i>processParams</i>)
197 <p>
198 Public method to issue a list of commands to be executed.
199 </p><dl>
200 <dt><i>processParams</i> (list of tuples of str and list of str)</dt>
201 <dd>
202 list of tuples containing the command
203 and arguments
204 </dd>
205 </dl><dl>
206 <dt>Returns:</dt>
207 <dd>
208 flag indicating a successful start of the first process
209 </dd>
210 </dl><dl>
211 <dt>Return Type:</dt>
212 <dd>
213 bool
214 </dd>
215 </dl>
216 <div align="right"><a href="#top">Up</a></div>
217 <hr />
218 </body></html>

eric ide

mercurial