16 |
16 |
17 a { color: #BA6D36; } |
17 a { color: #BA6D36; } |
18 |
18 |
19 </style> |
19 </style> |
20 </head> |
20 </head> |
21 <body><a NAME="top" ID="top"></a> |
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
22 <h1>eric6.E5Gui.E5TextSpinBox</h1> |
23 <h1>eric6.E5Gui.E5TextSpinBox</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing a spinbox with textual entries. |
26 Module implementing a spinbox with textual entries. |
25 </p> |
27 </p> |
26 <h3>Global Attributes</h3> |
28 <h3>Global Attributes</h3> |
|
29 |
27 <table> |
30 <table> |
28 <tr><td>None</td></tr> |
31 <tr><td>None</td></tr> |
29 </table> |
32 </table> |
30 <h3>Classes</h3> |
33 <h3>Classes</h3> |
31 <table> |
34 |
|
35 <table> |
|
36 |
32 <tr> |
37 <tr> |
33 <td><a href="#E5TextSpinBox">E5TextSpinBox</a></td> |
38 <td><a href="#E5TextSpinBox">E5TextSpinBox</a></td> |
34 <td>Class implementing a spinbox with textual entries.</td> |
39 <td>Class implementing a spinbox with textual entries.</td> |
35 </tr> |
40 </tr> |
36 </table> |
41 </table> |
37 <h3>Functions</h3> |
42 <h3>Functions</h3> |
38 <table> |
43 |
39 <tr><td>None</td></tr> |
44 <table> |
40 </table> |
45 <tr><td>None</td></tr> |
41 <hr /><hr /> |
46 </table> |
|
47 <hr /> |
|
48 <hr /> |
42 <a NAME="E5TextSpinBox" ID="E5TextSpinBox"></a> |
49 <a NAME="E5TextSpinBox" ID="E5TextSpinBox"></a> |
43 <h2>E5TextSpinBox</h2> |
50 <h2>E5TextSpinBox</h2> |
|
51 |
44 <p> |
52 <p> |
45 Class implementing a spinbox with textual entries. |
53 Class implementing a spinbox with textual entries. |
46 </p> |
54 </p> |
47 <h3>Derived from</h3> |
55 <h3>Derived from</h3> |
48 QSpinBox |
56 QSpinBox |
49 <h3>Class Attributes</h3> |
57 <h3>Class Attributes</h3> |
|
58 |
50 <table> |
59 <table> |
51 <tr><td>None</td></tr> |
60 <tr><td>None</td></tr> |
52 </table> |
61 </table> |
53 <h3>Class Methods</h3> |
62 <h3>Class Methods</h3> |
|
63 |
54 <table> |
64 <table> |
55 <tr><td>None</td></tr> |
65 <tr><td>None</td></tr> |
56 </table> |
66 </table> |
57 <h3>Methods</h3> |
67 <h3>Methods</h3> |
58 <table> |
68 |
|
69 <table> |
|
70 |
59 <tr> |
71 <tr> |
60 <td><a href="#E5TextSpinBox.__init__">E5TextSpinBox</a></td> |
72 <td><a href="#E5TextSpinBox.__init__">E5TextSpinBox</a></td> |
61 <td>Constructor</td> |
73 <td>Constructor</td> |
62 </tr><tr> |
74 </tr> |
|
75 <tr> |
63 <td><a href="#E5TextSpinBox.addItem">addItem</a></td> |
76 <td><a href="#E5TextSpinBox.addItem">addItem</a></td> |
64 <td>Public method to add an item with item data.</td> |
77 <td>Public method to add an item with item data.</td> |
65 </tr><tr> |
78 </tr> |
|
79 <tr> |
66 <td><a href="#E5TextSpinBox.currentIndex">currentIndex</a></td> |
80 <td><a href="#E5TextSpinBox.currentIndex">currentIndex</a></td> |
67 <td>Public method to retrieve the current index.</td> |
81 <td>Public method to retrieve the current index.</td> |
68 </tr><tr> |
82 </tr> |
|
83 <tr> |
69 <td><a href="#E5TextSpinBox.itemData">itemData</a></td> |
84 <td><a href="#E5TextSpinBox.itemData">itemData</a></td> |
70 <td>Public method to retrieve the data associated with an item.</td> |
85 <td>Public method to retrieve the data associated with an item.</td> |
71 </tr><tr> |
86 </tr> |
|
87 <tr> |
72 <td><a href="#E5TextSpinBox.textFromValue">textFromValue</a></td> |
88 <td><a href="#E5TextSpinBox.textFromValue">textFromValue</a></td> |
73 <td>Public method to convert a value to text.</td> |
89 <td>Public method to convert a value to text.</td> |
74 </tr><tr> |
90 </tr> |
|
91 <tr> |
75 <td><a href="#E5TextSpinBox.valueFromText">valueFromText</a></td> |
92 <td><a href="#E5TextSpinBox.valueFromText">valueFromText</a></td> |
76 <td>Public method to convert a text to a value.</td> |
93 <td>Public method to convert a text to a value.</td> |
77 </tr> |
94 </tr> |
78 </table> |
95 </table> |
79 <h3>Static Methods</h3> |
96 <h3>Static Methods</h3> |
80 <table> |
97 |
81 <tr><td>None</td></tr> |
98 <table> |
82 </table> |
99 <tr><td>None</td></tr> |
|
100 </table> |
|
101 |
83 <a NAME="E5TextSpinBox.__init__" ID="E5TextSpinBox.__init__"></a> |
102 <a NAME="E5TextSpinBox.__init__" ID="E5TextSpinBox.__init__"></a> |
84 <h4>E5TextSpinBox (Constructor)</h4> |
103 <h4>E5TextSpinBox (Constructor)</h4> |
85 <b>E5TextSpinBox</b>(<i>parent=None</i>) |
104 <b>E5TextSpinBox</b>(<i>parent=None</i>) |
|
105 |
86 <p> |
106 <p> |
87 Constructor |
107 Constructor |
88 </p><dl> |
108 </p> |
|
109 <dl> |
|
110 |
89 <dt><i>parent</i></dt> |
111 <dt><i>parent</i></dt> |
90 <dd> |
112 <dd> |
91 reference to the parent widget (QWidget) |
113 reference to the parent widget (QWidget) |
92 </dd> |
114 </dd> |
93 </dl><a NAME="E5TextSpinBox.addItem" ID="E5TextSpinBox.addItem"></a> |
115 </dl> |
|
116 <a NAME="E5TextSpinBox.addItem" ID="E5TextSpinBox.addItem"></a> |
94 <h4>E5TextSpinBox.addItem</h4> |
117 <h4>E5TextSpinBox.addItem</h4> |
95 <b>addItem</b>(<i>txt, data=None</i>) |
118 <b>addItem</b>(<i>txt, data=None</i>) |
|
119 |
96 <p> |
120 <p> |
97 Public method to add an item with item data. |
121 Public method to add an item with item data. |
98 </p><dl> |
122 </p> |
|
123 <dl> |
|
124 |
99 <dt><i>txt</i></dt> |
125 <dt><i>txt</i></dt> |
100 <dd> |
126 <dd> |
101 text to be shown (string) |
127 text to be shown (string) |
102 </dd><dt><i>data</i></dt> |
128 </dd> |
|
129 <dt><i>data</i></dt> |
103 <dd> |
130 <dd> |
104 associated data |
131 associated data |
105 </dd> |
132 </dd> |
106 </dl><a NAME="E5TextSpinBox.currentIndex" ID="E5TextSpinBox.currentIndex"></a> |
133 </dl> |
|
134 <a NAME="E5TextSpinBox.currentIndex" ID="E5TextSpinBox.currentIndex"></a> |
107 <h4>E5TextSpinBox.currentIndex</h4> |
135 <h4>E5TextSpinBox.currentIndex</h4> |
108 <b>currentIndex</b>(<i></i>) |
136 <b>currentIndex</b>(<i></i>) |
|
137 |
109 <p> |
138 <p> |
110 Public method to retrieve the current index. |
139 Public method to retrieve the current index. |
111 </p><dl> |
140 </p> |
|
141 <dl> |
112 <dt>Returns:</dt> |
142 <dt>Returns:</dt> |
113 <dd> |
143 <dd> |
114 current index (integer) |
144 current index (integer) |
115 </dd> |
145 </dd> |
116 </dl><a NAME="E5TextSpinBox.itemData" ID="E5TextSpinBox.itemData"></a> |
146 </dl> |
|
147 <a NAME="E5TextSpinBox.itemData" ID="E5TextSpinBox.itemData"></a> |
117 <h4>E5TextSpinBox.itemData</h4> |
148 <h4>E5TextSpinBox.itemData</h4> |
118 <b>itemData</b>(<i>index</i>) |
149 <b>itemData</b>(<i>index</i>) |
|
150 |
119 <p> |
151 <p> |
120 Public method to retrieve the data associated with an item. |
152 Public method to retrieve the data associated with an item. |
121 </p><dl> |
153 </p> |
|
154 <dl> |
|
155 |
122 <dt><i>index</i></dt> |
156 <dt><i>index</i></dt> |
123 <dd> |
157 <dd> |
124 index of the item (integer) |
158 index of the item (integer) |
125 </dd> |
159 </dd> |
126 </dl><dl> |
160 </dl> |
|
161 <dl> |
127 <dt>Returns:</dt> |
162 <dt>Returns:</dt> |
128 <dd> |
163 <dd> |
129 associated data |
164 associated data |
130 </dd> |
165 </dd> |
131 </dl><a NAME="E5TextSpinBox.textFromValue" ID="E5TextSpinBox.textFromValue"></a> |
166 </dl> |
|
167 <a NAME="E5TextSpinBox.textFromValue" ID="E5TextSpinBox.textFromValue"></a> |
132 <h4>E5TextSpinBox.textFromValue</h4> |
168 <h4>E5TextSpinBox.textFromValue</h4> |
133 <b>textFromValue</b>(<i>value</i>) |
169 <b>textFromValue</b>(<i>value</i>) |
|
170 |
134 <p> |
171 <p> |
135 Public method to convert a value to text. |
172 Public method to convert a value to text. |
136 </p><dl> |
173 </p> |
|
174 <dl> |
|
175 |
137 <dt><i>value</i></dt> |
176 <dt><i>value</i></dt> |
138 <dd> |
177 <dd> |
139 value to be converted (integer) |
178 value to be converted (integer) |
140 </dd> |
179 </dd> |
141 </dl><dl> |
180 </dl> |
|
181 <dl> |
142 <dt>Returns:</dt> |
182 <dt>Returns:</dt> |
143 <dd> |
183 <dd> |
144 text for the given value (string) |
184 text for the given value (string) |
145 </dd> |
185 </dd> |
146 </dl><a NAME="E5TextSpinBox.valueFromText" ID="E5TextSpinBox.valueFromText"></a> |
186 </dl> |
|
187 <a NAME="E5TextSpinBox.valueFromText" ID="E5TextSpinBox.valueFromText"></a> |
147 <h4>E5TextSpinBox.valueFromText</h4> |
188 <h4>E5TextSpinBox.valueFromText</h4> |
148 <b>valueFromText</b>(<i>txt</i>) |
189 <b>valueFromText</b>(<i>txt</i>) |
|
190 |
149 <p> |
191 <p> |
150 Public method to convert a text to a value. |
192 Public method to convert a text to a value. |
151 </p><dl> |
193 </p> |
|
194 <dl> |
|
195 |
152 <dt><i>txt</i></dt> |
196 <dt><i>txt</i></dt> |
153 <dd> |
197 <dd> |
154 text to be converted (string) |
198 text to be converted (string) |
155 </dd> |
199 </dd> |
156 </dl><dl> |
200 </dl> |
|
201 <dl> |
157 <dt>Returns:</dt> |
202 <dt>Returns:</dt> |
158 <dd> |
203 <dd> |
159 value for the given text (integer) |
204 value for the given text (integer) |
160 </dd> |
205 </dd> |
161 </dl> |
206 </dl> |