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

branch
eric7
changeset 9209
b99e7fd55fd3
parent 8596
d64760b2da50
child 10423
299802979277
equal deleted inserted replaced
9208:3fc8dfeb6ebe 9209:b99e7fd55fd3
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.EricWidgets.EricTextSpinBox</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.EricWidgets.EricTextSpinBox</h1>
10
11 <p>
12 Module implementing a spinbox with textual entries.
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="#EricTextSpinBox">EricTextSpinBox</a></td>
25 <td>Class implementing a spinbox with textual entries.</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="EricTextSpinBox" ID="EricTextSpinBox"></a>
36 <h2>EricTextSpinBox</h2>
37
38 <p>
39 Class implementing a spinbox with textual entries.
40 </p>
41 <h3>Derived from</h3>
42 QSpinBox
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="#EricTextSpinBox.__init__">EricTextSpinBox</a></td>
59 <td>Constructor</td>
60 </tr>
61 <tr>
62 <td><a href="#EricTextSpinBox.addItem">addItem</a></td>
63 <td>Public method to add an item with item data.</td>
64 </tr>
65 <tr>
66 <td><a href="#EricTextSpinBox.currentIndex">currentIndex</a></td>
67 <td>Public method to retrieve the current index.</td>
68 </tr>
69 <tr>
70 <td><a href="#EricTextSpinBox.itemData">itemData</a></td>
71 <td>Public method to retrieve the data associated with an item.</td>
72 </tr>
73 <tr>
74 <td><a href="#EricTextSpinBox.textFromValue">textFromValue</a></td>
75 <td>Public method to convert a value to text.</td>
76 </tr>
77 <tr>
78 <td><a href="#EricTextSpinBox.valueFromText">valueFromText</a></td>
79 <td>Public method to convert a text to a value.</td>
80 </tr>
81 </table>
82 <h3>Static Methods</h3>
83
84 <table>
85 <tr><td>None</td></tr>
86 </table>
87
88 <a NAME="EricTextSpinBox.__init__" ID="EricTextSpinBox.__init__"></a>
89 <h4>EricTextSpinBox (Constructor)</h4>
90 <b>EricTextSpinBox</b>(<i>parent=None</i>)
91
92 <p>
93 Constructor
94 </p>
95 <dl>
96
97 <dt><i>parent</i></dt>
98 <dd>
99 reference to the parent widget (QWidget)
100 </dd>
101 </dl>
102 <a NAME="EricTextSpinBox.addItem" ID="EricTextSpinBox.addItem"></a>
103 <h4>EricTextSpinBox.addItem</h4>
104 <b>addItem</b>(<i>txt, data=None</i>)
105
106 <p>
107 Public method to add an item with item data.
108 </p>
109 <dl>
110
111 <dt><i>txt</i></dt>
112 <dd>
113 text to be shown (string)
114 </dd>
115 <dt><i>data</i></dt>
116 <dd>
117 associated data
118 </dd>
119 </dl>
120 <a NAME="EricTextSpinBox.currentIndex" ID="EricTextSpinBox.currentIndex"></a>
121 <h4>EricTextSpinBox.currentIndex</h4>
122 <b>currentIndex</b>(<i></i>)
123
124 <p>
125 Public method to retrieve the current index.
126 </p>
127 <dl>
128 <dt>Return:</dt>
129 <dd>
130 current index (integer)
131 </dd>
132 </dl>
133 <a NAME="EricTextSpinBox.itemData" ID="EricTextSpinBox.itemData"></a>
134 <h4>EricTextSpinBox.itemData</h4>
135 <b>itemData</b>(<i>index</i>)
136
137 <p>
138 Public method to retrieve the data associated with an item.
139 </p>
140 <dl>
141
142 <dt><i>index</i></dt>
143 <dd>
144 index of the item (integer)
145 </dd>
146 </dl>
147 <dl>
148 <dt>Return:</dt>
149 <dd>
150 associated data
151 </dd>
152 </dl>
153 <a NAME="EricTextSpinBox.textFromValue" ID="EricTextSpinBox.textFromValue"></a>
154 <h4>EricTextSpinBox.textFromValue</h4>
155 <b>textFromValue</b>(<i>value</i>)
156
157 <p>
158 Public method to convert a value to text.
159 </p>
160 <dl>
161
162 <dt><i>value</i></dt>
163 <dd>
164 value to be converted (integer)
165 </dd>
166 </dl>
167 <dl>
168 <dt>Return:</dt>
169 <dd>
170 text for the given value (string)
171 </dd>
172 </dl>
173 <a NAME="EricTextSpinBox.valueFromText" ID="EricTextSpinBox.valueFromText"></a>
174 <h4>EricTextSpinBox.valueFromText</h4>
175 <b>valueFromText</b>(<i>txt</i>)
176
177 <p>
178 Public method to convert a text to a value.
179 </p>
180 <dl>
181
182 <dt><i>txt</i></dt>
183 <dd>
184 text to be converted (string)
185 </dd>
186 </dl>
187 <dl>
188 <dt>Return:</dt>
189 <dd>
190 value for the given text (integer)
191 </dd>
192 </dl>
193 <div align="right"><a href="#top">Up</a></div>
194 <hr />
195 </body></html>

eric ide

mercurial