Spinbox
- It is approaximately same as tkinter Entry but in Spinbox we can provide range of values to the user ,out of which ,user can select one.
- Syntax:
m = Spinbox ( master, option1,option2, ... )
- Here master is parent window and option can be used as a key-value pairs.
- Examples of options are bg,font,width,height etc.
from tkinter import * top = Tk() top['bg']="#51E1DC" top.geometry("200x150") #create spinbox Spinbox(top, from_=10, to=20).pack(pady=5) top.mainloop()