|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.MicroPython.MicroPythonWebreplConnectionDialog</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.MicroPython.MicroPythonWebreplConnectionDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a dialog to enter the WebREPL connection parameters. |
|
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="#MicroPythonWebreplConnectionDialog">MicroPythonWebreplConnectionDialog</a></td> |
|
25 <td>Class implementing a dialog to enter the WebREPL connection parameters.</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="MicroPythonWebreplConnectionDialog" ID="MicroPythonWebreplConnectionDialog"></a> |
|
36 <h2>MicroPythonWebreplConnectionDialog</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a dialog to enter the WebREPL connection parameters. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QDialog, Ui_MicroPythonWebreplConnectionDialog |
|
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="#MicroPythonWebreplConnectionDialog.__init__">MicroPythonWebreplConnectionDialog</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#MicroPythonWebreplConnectionDialog.__updateOkButton">__updateOkButton</a></td> |
|
63 <td>Private slot to update the enabled state of the OK button.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#MicroPythonWebreplConnectionDialog.getWebreplConnectionParameters">getWebreplConnectionParameters</a></td> |
|
67 <td>Public method to retrieve the entered WebREPL connection data.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#MicroPythonWebreplConnectionDialog.on_showPasswordButton_clicked">on_showPasswordButton_clicked</a></td> |
|
71 <td>Private slot to show or hide the password.</td> |
|
72 </tr> |
|
73 </table> |
|
74 <h3>Static Methods</h3> |
|
75 |
|
76 <table> |
|
77 <tr><td>None</td></tr> |
|
78 </table> |
|
79 |
|
80 <a NAME="MicroPythonWebreplConnectionDialog.__init__" ID="MicroPythonWebreplConnectionDialog.__init__"></a> |
|
81 <h4>MicroPythonWebreplConnectionDialog (Constructor)</h4> |
|
82 <b>MicroPythonWebreplConnectionDialog</b>(<i>currentWebreplUrl, currentType, parent=None</i>) |
|
83 |
|
84 <p> |
|
85 Constructor |
|
86 </p> |
|
87 <dl> |
|
88 |
|
89 <dt><i>currentWebreplUrl</i> (str)</dt> |
|
90 <dd> |
|
91 WebREPL URL most recently configured |
|
92 </dd> |
|
93 <dt><i>currentType</i> (str)</dt> |
|
94 <dd> |
|
95 device type most recently selected |
|
96 </dd> |
|
97 <dt><i>parent</i> (QWidget (optional))</dt> |
|
98 <dd> |
|
99 reference to the parent widget (defaults to None) |
|
100 </dd> |
|
101 </dl> |
|
102 <a NAME="MicroPythonWebreplConnectionDialog.__updateOkButton" ID="MicroPythonWebreplConnectionDialog.__updateOkButton"></a> |
|
103 <h4>MicroPythonWebreplConnectionDialog.__updateOkButton</h4> |
|
104 <b>__updateOkButton</b>(<i></i>) |
|
105 |
|
106 <p> |
|
107 Private slot to update the enabled state of the OK button. |
|
108 </p> |
|
109 <a NAME="MicroPythonWebreplConnectionDialog.getWebreplConnectionParameters" ID="MicroPythonWebreplConnectionDialog.getWebreplConnectionParameters"></a> |
|
110 <h4>MicroPythonWebreplConnectionDialog.getWebreplConnectionParameters</h4> |
|
111 <b>getWebreplConnectionParameters</b>(<i></i>) |
|
112 |
|
113 <p> |
|
114 Public method to retrieve the entered WebREPL connection data. |
|
115 </p> |
|
116 <dl> |
|
117 <dt>Return:</dt> |
|
118 <dd> |
|
119 tuple containing the URL and device type for the WebREPL connection |
|
120 </dd> |
|
121 </dl> |
|
122 <dl> |
|
123 <dt>Return Type:</dt> |
|
124 <dd> |
|
125 tuple of (str, str) |
|
126 </dd> |
|
127 </dl> |
|
128 <a NAME="MicroPythonWebreplConnectionDialog.on_showPasswordButton_clicked" ID="MicroPythonWebreplConnectionDialog.on_showPasswordButton_clicked"></a> |
|
129 <h4>MicroPythonWebreplConnectionDialog.on_showPasswordButton_clicked</h4> |
|
130 <b>on_showPasswordButton_clicked</b>(<i>checked</i>) |
|
131 |
|
132 <p> |
|
133 Private slot to show or hide the password. |
|
134 </p> |
|
135 <dl> |
|
136 |
|
137 <dt><i>checked</i> (bool)</dt> |
|
138 <dd> |
|
139 state of the button |
|
140 </dd> |
|
141 </dl> |
|
142 <div align="right"><a href="#top">Up</a></div> |
|
143 <hr /> |
|
144 </body></html> |