|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.EricWidgets.EricLineEditButton</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>eric7.EricWidgets.EricLineEditButton</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing a button class to be used with EricLineEdit. |
|
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="#EricLineEditButton">EricLineEditButton</a></td> |
|
39 <td>Class implementing a button to be used with EricLineEdit.</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="EricLineEditButton" ID="EricLineEditButton"></a> |
|
50 <h2>EricLineEditButton</h2> |
|
51 |
|
52 <p> |
|
53 Class implementing a button to be used with EricLineEdit. |
|
54 </p> |
|
55 <h3>Derived from</h3> |
|
56 QAbstractButton |
|
57 <h3>Class Attributes</h3> |
|
58 |
|
59 <table> |
|
60 <tr><td>None</td></tr> |
|
61 </table> |
|
62 <h3>Class Methods</h3> |
|
63 |
|
64 <table> |
|
65 <tr><td>None</td></tr> |
|
66 </table> |
|
67 <h3>Methods</h3> |
|
68 |
|
69 <table> |
|
70 |
|
71 <tr> |
|
72 <td><a href="#EricLineEditButton.__init__">EricLineEditButton</a></td> |
|
73 <td>Constructor</td> |
|
74 </tr> |
|
75 <tr> |
|
76 <td><a href="#EricLineEditButton.__clicked">__clicked</a></td> |
|
77 <td>Private slot to handle a button click.</td> |
|
78 </tr> |
|
79 <tr> |
|
80 <td><a href="#EricLineEditButton.menu">menu</a></td> |
|
81 <td>Public method to get a reference to the menu.</td> |
|
82 </tr> |
|
83 <tr> |
|
84 <td><a href="#EricLineEditButton.paintEvent">paintEvent</a></td> |
|
85 <td>Protected method handling a paint event.</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#EricLineEditButton.setIcon">setIcon</a></td> |
|
89 <td>Public method to set the button icon.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#EricLineEditButton.setMenu">setMenu</a></td> |
|
93 <td>Public method to set the button menu.</td> |
|
94 </tr> |
|
95 </table> |
|
96 <h3>Static Methods</h3> |
|
97 |
|
98 <table> |
|
99 <tr><td>None</td></tr> |
|
100 </table> |
|
101 |
|
102 <a NAME="EricLineEditButton.__init__" ID="EricLineEditButton.__init__"></a> |
|
103 <h4>EricLineEditButton (Constructor)</h4> |
|
104 <b>EricLineEditButton</b>(<i>parent=None</i>) |
|
105 |
|
106 <p> |
|
107 Constructor |
|
108 </p> |
|
109 <dl> |
|
110 |
|
111 <dt><i>parent</i></dt> |
|
112 <dd> |
|
113 reference to the parent widget (QWidget) |
|
114 </dd> |
|
115 </dl> |
|
116 <a NAME="EricLineEditButton.__clicked" ID="EricLineEditButton.__clicked"></a> |
|
117 <h4>EricLineEditButton.__clicked</h4> |
|
118 <b>__clicked</b>(<i></i>) |
|
119 |
|
120 <p> |
|
121 Private slot to handle a button click. |
|
122 </p> |
|
123 <a NAME="EricLineEditButton.menu" ID="EricLineEditButton.menu"></a> |
|
124 <h4>EricLineEditButton.menu</h4> |
|
125 <b>menu</b>(<i></i>) |
|
126 |
|
127 <p> |
|
128 Public method to get a reference to the menu. |
|
129 </p> |
|
130 <dl> |
|
131 <dt>Return:</dt> |
|
132 <dd> |
|
133 reference to the associated menu (QMenu) |
|
134 </dd> |
|
135 </dl> |
|
136 <a NAME="EricLineEditButton.paintEvent" ID="EricLineEditButton.paintEvent"></a> |
|
137 <h4>EricLineEditButton.paintEvent</h4> |
|
138 <b>paintEvent</b>(<i>evt</i>) |
|
139 |
|
140 <p> |
|
141 Protected method handling a paint event. |
|
142 </p> |
|
143 <dl> |
|
144 |
|
145 <dt><i>evt</i></dt> |
|
146 <dd> |
|
147 reference to the paint event (QPaintEvent) |
|
148 </dd> |
|
149 </dl> |
|
150 <a NAME="EricLineEditButton.setIcon" ID="EricLineEditButton.setIcon"></a> |
|
151 <h4>EricLineEditButton.setIcon</h4> |
|
152 <b>setIcon</b>(<i>icon</i>) |
|
153 |
|
154 <p> |
|
155 Public method to set the button icon. |
|
156 </p> |
|
157 <dl> |
|
158 |
|
159 <dt><i>icon</i></dt> |
|
160 <dd> |
|
161 icon to be set (QIcon) |
|
162 </dd> |
|
163 </dl> |
|
164 <a NAME="EricLineEditButton.setMenu" ID="EricLineEditButton.setMenu"></a> |
|
165 <h4>EricLineEditButton.setMenu</h4> |
|
166 <b>setMenu</b>(<i>menu</i>) |
|
167 |
|
168 <p> |
|
169 Public method to set the button menu. |
|
170 </p> |
|
171 <dl> |
|
172 |
|
173 <dt><i>menu</i></dt> |
|
174 <dd> |
|
175 reference to the menu (QMenu) |
|
176 </dd> |
|
177 </dl> |
|
178 <div align="right"><a href="#top">Up</a></div> |
|
179 <hr /> |
|
180 </body></html> |