Saturday, 26 September 2020

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

Beneficial information

Shipwreck more tragic than Titanic

Watch video to know: Shipwreck more tragic than Titanic https://youtu.be/7IVaHgxHU20

Impact-Site-Verification: b5ea34f9-4d6d-4198-89d2-2740a9156405