eric6/Documentation/Source/eric6.E5Gui.E5TextSpinBox.html

branch
maintenance
changeset 6989
8b8cadf8d7e9
parent 6942
2602857055c5
child 7273
391d6b7b1eff
equal deleted inserted replaced
6938:7926553b7509 6989:8b8cadf8d7e9
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.E5Gui.E5TextSpinBox</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><a NAME="top" ID="top"></a>
22 <h1>eric6.E5Gui.E5TextSpinBox</h1>
23 <p>
24 Module implementing a spinbox with textual entries.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#E5TextSpinBox">E5TextSpinBox</a></td>
34 <td>Class implementing a spinbox with textual entries.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="E5TextSpinBox" ID="E5TextSpinBox"></a>
43 <h2>E5TextSpinBox</h2>
44 <p>
45 Class implementing a spinbox with textual entries.
46 </p>
47 <h3>Derived from</h3>
48 QSpinBox
49 <h3>Class Attributes</h3>
50 <table>
51 <tr><td>None</td></tr>
52 </table>
53 <h3>Class Methods</h3>
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Methods</h3>
58 <table>
59 <tr>
60 <td><a href="#E5TextSpinBox.__init__">E5TextSpinBox</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#E5TextSpinBox.addItem">addItem</a></td>
64 <td>Public method to add an item with item data.</td>
65 </tr><tr>
66 <td><a href="#E5TextSpinBox.currentIndex">currentIndex</a></td>
67 <td>Public method to retrieve the current index.</td>
68 </tr><tr>
69 <td><a href="#E5TextSpinBox.itemData">itemData</a></td>
70 <td>Public method to retrieve the data associated with an item.</td>
71 </tr><tr>
72 <td><a href="#E5TextSpinBox.textFromValue">textFromValue</a></td>
73 <td>Public method to convert a value to text.</td>
74 </tr><tr>
75 <td><a href="#E5TextSpinBox.valueFromText">valueFromText</a></td>
76 <td>Public method to convert a text to a value.</td>
77 </tr>
78 </table>
79 <h3>Static Methods</h3>
80 <table>
81 <tr><td>None</td></tr>
82 </table>
83 <a NAME="E5TextSpinBox.__init__" ID="E5TextSpinBox.__init__"></a>
84 <h4>E5TextSpinBox (Constructor)</h4>
85 <b>E5TextSpinBox</b>(<i>parent=None</i>)
86 <p>
87 Constructor
88 </p><dl>
89 <dt><i>parent</i></dt>
90 <dd>
91 reference to the parent widget (QWidget)
92 </dd>
93 </dl><a NAME="E5TextSpinBox.addItem" ID="E5TextSpinBox.addItem"></a>
94 <h4>E5TextSpinBox.addItem</h4>
95 <b>addItem</b>(<i>txt, data=None</i>)
96 <p>
97 Public method to add an item with item data.
98 </p><dl>
99 <dt><i>txt</i></dt>
100 <dd>
101 text to be shown (string)
102 </dd><dt><i>data</i></dt>
103 <dd>
104 associated data
105 </dd>
106 </dl><a NAME="E5TextSpinBox.currentIndex" ID="E5TextSpinBox.currentIndex"></a>
107 <h4>E5TextSpinBox.currentIndex</h4>
108 <b>currentIndex</b>(<i></i>)
109 <p>
110 Public method to retrieve the current index.
111 </p><dl>
112 <dt>Returns:</dt>
113 <dd>
114 current index (integer)
115 </dd>
116 </dl><a NAME="E5TextSpinBox.itemData" ID="E5TextSpinBox.itemData"></a>
117 <h4>E5TextSpinBox.itemData</h4>
118 <b>itemData</b>(<i>index</i>)
119 <p>
120 Public method to retrieve the data associated with an item.
121 </p><dl>
122 <dt><i>index</i></dt>
123 <dd>
124 index of the item (integer)
125 </dd>
126 </dl><dl>
127 <dt>Returns:</dt>
128 <dd>
129 associated data
130 </dd>
131 </dl><a NAME="E5TextSpinBox.textFromValue" ID="E5TextSpinBox.textFromValue"></a>
132 <h4>E5TextSpinBox.textFromValue</h4>
133 <b>textFromValue</b>(<i>value</i>)
134 <p>
135 Public method to convert a value to text.
136 </p><dl>
137 <dt><i>value</i></dt>
138 <dd>
139 value to be converted (integer)
140 </dd>
141 </dl><dl>
142 <dt>Returns:</dt>
143 <dd>
144 text for the given value (string)
145 </dd>
146 </dl><a NAME="E5TextSpinBox.valueFromText" ID="E5TextSpinBox.valueFromText"></a>
147 <h4>E5TextSpinBox.valueFromText</h4>
148 <b>valueFromText</b>(<i>txt</i>)
149 <p>
150 Public method to convert a text to a value.
151 </p><dl>
152 <dt><i>txt</i></dt>
153 <dd>
154 text to be converted (string)
155 </dd>
156 </dl><dl>
157 <dt>Returns:</dt>
158 <dd>
159 value for the given text (integer)
160 </dd>
161 </dl>
162 <div align="right"><a href="#top">Up</a></div>
163 <hr />
164 </body></html>

eric ide

mercurial