Skip to content

Commit 7fc249f

Browse files
Refined example
1 parent a36c8f4 commit 7fc249f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/smart_spinbox.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ def callback(value):
1313
value_label.config(text=str(value))
1414

1515
# specify a callback, then specify the normal spinbox options (such as "from_", "to", and "increment"
16-
tk_tools.SmartSpinBox(root, callback=callback,
16+
tk_tools.SmartSpinBox(root, callback=callback, entry_type='int',
1717
from_=0, to=3).grid(row=1, column=0)
18-
tk_tools.SmartSpinBox(root, callback=callback,
18+
tk_tools.SmartSpinBox(root, callback=callback, entry_type='float',
1919
from_=-2.5, to=3.0, increment=0.1).grid(row=2, column=0)
20-
tk_tools.SmartSpinBox(root, callback=callback,
20+
tk_tools.SmartSpinBox(root, callback=callback, entry_type='str',
2121
values=('a', 'b', 'c')).grid(row=3, column=0)
2222
root.mainloop()

0 commit comments

Comments
 (0)