src/eric7/Documentation/Source/eric7.EricWidgets.EricTextSpinBox.html

branch
eric7
changeset 10423
299802979277
parent 9209
b99e7fd55fd3
child 10479
856476537696
equal deleted inserted replaced
10422:e28b89693f37 10423:299802979277
92 <p> 92 <p>
93 Constructor 93 Constructor
94 </p> 94 </p>
95 <dl> 95 <dl>
96 96
97 <dt><i>parent</i></dt> 97 <dt><i>parent</i> (QWidget)</dt>
98 <dd> 98 <dd>
99 reference to the parent widget (QWidget) 99 reference to the parent widget
100 </dd> 100 </dd>
101 </dl> 101 </dl>
102 <a NAME="EricTextSpinBox.addItem" ID="EricTextSpinBox.addItem"></a> 102 <a NAME="EricTextSpinBox.addItem" ID="EricTextSpinBox.addItem"></a>
103 <h4>EricTextSpinBox.addItem</h4> 103 <h4>EricTextSpinBox.addItem</h4>
104 <b>addItem</b>(<i>txt, data=None</i>) 104 <b>addItem</b>(<i>txt, data=None</i>)
106 <p> 106 <p>
107 Public method to add an item with item data. 107 Public method to add an item with item data.
108 </p> 108 </p>
109 <dl> 109 <dl>
110 110
111 <dt><i>txt</i></dt> 111 <dt><i>txt</i> (str)</dt>
112 <dd> 112 <dd>
113 text to be shown (string) 113 text to be shown
114 </dd> 114 </dd>
115 <dt><i>data</i></dt> 115 <dt><i>data</i> (Any)</dt>
116 <dd> 116 <dd>
117 associated data 117 associated data
118 </dd> 118 </dd>
119 </dl> 119 </dl>
120 <a NAME="EricTextSpinBox.currentIndex" ID="EricTextSpinBox.currentIndex"></a> 120 <a NAME="EricTextSpinBox.currentIndex" ID="EricTextSpinBox.currentIndex"></a>
125 Public method to retrieve the current index. 125 Public method to retrieve the current index.
126 </p> 126 </p>
127 <dl> 127 <dl>
128 <dt>Return:</dt> 128 <dt>Return:</dt>
129 <dd> 129 <dd>
130 current index (integer) 130 current index
131 </dd>
132 </dl>
133 <dl>
134 <dt>Return Type:</dt>
135 <dd>
136 int
131 </dd> 137 </dd>
132 </dl> 138 </dl>
133 <a NAME="EricTextSpinBox.itemData" ID="EricTextSpinBox.itemData"></a> 139 <a NAME="EricTextSpinBox.itemData" ID="EricTextSpinBox.itemData"></a>
134 <h4>EricTextSpinBox.itemData</h4> 140 <h4>EricTextSpinBox.itemData</h4>
135 <b>itemData</b>(<i>index</i>) 141 <b>itemData</b>(<i>index</i>)
137 <p> 143 <p>
138 Public method to retrieve the data associated with an item. 144 Public method to retrieve the data associated with an item.
139 </p> 145 </p>
140 <dl> 146 <dl>
141 147
142 <dt><i>index</i></dt> 148 <dt><i>index</i> (int)</dt>
143 <dd> 149 <dd>
144 index of the item (integer) 150 index of the item
145 </dd> 151 </dd>
146 </dl> 152 </dl>
147 <dl> 153 <dl>
148 <dt>Return:</dt> 154 <dt>Return:</dt>
149 <dd> 155 <dd>
150 associated data 156 associated data
157 </dd>
158 </dl>
159 <dl>
160 <dt>Return Type:</dt>
161 <dd>
162 Any
151 </dd> 163 </dd>
152 </dl> 164 </dl>
153 <a NAME="EricTextSpinBox.textFromValue" ID="EricTextSpinBox.textFromValue"></a> 165 <a NAME="EricTextSpinBox.textFromValue" ID="EricTextSpinBox.textFromValue"></a>
154 <h4>EricTextSpinBox.textFromValue</h4> 166 <h4>EricTextSpinBox.textFromValue</h4>
155 <b>textFromValue</b>(<i>value</i>) 167 <b>textFromValue</b>(<i>value</i>)
157 <p> 169 <p>
158 Public method to convert a value to text. 170 Public method to convert a value to text.
159 </p> 171 </p>
160 <dl> 172 <dl>
161 173
162 <dt><i>value</i></dt> 174 <dt><i>value</i> (int)</dt>
163 <dd> 175 <dd>
164 value to be converted (integer) 176 value to be converted
165 </dd> 177 </dd>
166 </dl> 178 </dl>
167 <dl> 179 <dl>
168 <dt>Return:</dt> 180 <dt>Return:</dt>
169 <dd> 181 <dd>
170 text for the given value (string) 182 text for the given value
183 </dd>
184 </dl>
185 <dl>
186 <dt>Return Type:</dt>
187 <dd>
188 str
171 </dd> 189 </dd>
172 </dl> 190 </dl>
173 <a NAME="EricTextSpinBox.valueFromText" ID="EricTextSpinBox.valueFromText"></a> 191 <a NAME="EricTextSpinBox.valueFromText" ID="EricTextSpinBox.valueFromText"></a>
174 <h4>EricTextSpinBox.valueFromText</h4> 192 <h4>EricTextSpinBox.valueFromText</h4>
175 <b>valueFromText</b>(<i>txt</i>) 193 <b>valueFromText</b>(<i>txt</i>)
177 <p> 195 <p>
178 Public method to convert a text to a value. 196 Public method to convert a text to a value.
179 </p> 197 </p>
180 <dl> 198 <dl>
181 199
182 <dt><i>txt</i></dt> 200 <dt><i>txt</i> (str)</dt>
183 <dd> 201 <dd>
184 text to be converted (string) 202 text to be converted
185 </dd> 203 </dd>
186 </dl> 204 </dl>
187 <dl> 205 <dl>
188 <dt>Return:</dt> 206 <dt>Return:</dt>
189 <dd> 207 <dd>
190 value for the given text (integer) 208 value for the given text
209 </dd>
210 </dl>
211 <dl>
212 <dt>Return Type:</dt>
213 <dd>
214 int
191 </dd> 215 </dd>
192 </dl> 216 </dl>
193 <div align="right"><a href="#top">Up</a></div> 217 <div align="right"><a href="#top">Up</a></div>
194 <hr /> 218 <hr />
195 </body></html> 219 </body></html>

eric ide

mercurial