Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tk_spinbox.py
- from Tkinter import *
- root = Tk()
- root.geometry('100x50+50+50')
- root.title('Spinbox')
- t = ('One', 'Two', 'Three', 'Four', 'Five')
- v = t[2]
- var = StringVar()
- sb = Spinbox(root, values=t, textvariable=var, width=16)
- var.set(v)
- sb.place(x=5, y=15)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement