Skip to content

Commit

Permalink
Refined example
Browse files Browse the repository at this point in the history
  • Loading branch information
slightlynybbled committed May 4, 2018
1 parent a36c8f4 commit 7fc249f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/smart_spinbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ def callback(value):
value_label.config(text=str(value))

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

0 comments on commit 7fc249f

Please sign in to comment.