Skip to main content

Learn Python: Spinbox

 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()
 

Popular posts from this blog

MEANING OF "Bridge the divide."

Amazon today's offer: Deal of the day "Bridge the divide." (Also: Bridge the gap) This  means, to bring two sides closer together, overcoming  their differences (the "divide" that separates them).  This divide may be political, social, or any other  major difference between groups of persons.  Limited Time Offer:  50% Off on Robot  Vacuum Cleaner Most Popular Course:Data Science of Harvard, MIT, IBM....  John Academy: 97% Off on Popular Online Courses Amazon Best Seller in Appliances Amazon Best Seller in Home and Kitchen Amazon Best Seller in Office Products Amazon Best Seller in Baby Products