MCPcopy Index your code
hub / github.com/python/cpython / Spinbox

Class Spinbox

Lib/tkinter/ttk.py:1133–1157  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

1131
1132
1133class 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
1160class Treeview(Widget, tkinter.XView, tkinter.YView):

Callers 1

create_page_windowsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…