Ttk Spinbox is an Entry with increment and decrement arrows It is commonly used for number entry or to select from a list of string values.
| 1131 | |
| 1132 | |
| 1133 | class Spinbox(Entry): |
| 1134 | """Ttk Spinbox is an Entry with increment and decrement arrows |
| 1135 | |
| 1136 | It is commonly used for number entry or to select from a list of |
| 1137 | string values. |
| 1138 | """ |
| 1139 | |
| 1140 | def __init__(self, master=None, **kw): |
| 1141 | """Construct a Ttk Spinbox widget with the parent master. |
| 1142 | |
| 1143 | STANDARD OPTIONS |
| 1144 | |
| 1145 | class, cursor, style, takefocus, validate, |
| 1146 | validatecommand, xscrollcommand, invalidcommand |
| 1147 | |
| 1148 | WIDGET-SPECIFIC OPTIONS |
| 1149 | |
| 1150 | to, from_, increment, values, wrap, format, command |
| 1151 | """ |
| 1152 | Entry.__init__(self, master, "ttk::spinbox", **kw) |
| 1153 | |
| 1154 | |
| 1155 | def set(self, value): |
| 1156 | """Sets the value of the Spinbox to value.""" |
| 1157 | self.tk.call(self._w, "set", value) |
| 1158 | |
| 1159 | |
| 1160 | class Treeview(Widget, tkinter.XView, tkinter.YView): |
no outgoing calls
no test coverage detected
searching dependent graphs…