The Spinbox widget
import tkinter as tk from tkinter import ttk parent = tk.Tk() my_double_var = tk.DoubleVar() my_spinbox = tk.Spinbox( parent, from_=0.5, to=52.0, increment=.01, textvariable=my_double_var ) my_spinbox.pack() parent.mainloop()
May 6, 2020 | python, tkinter | 0 comments
The Spinbox widget
import tkinter as tk from tkinter import ttk parent = tk.Tk() my_double_var = tk.DoubleVar() my_spinbox = tk.Spinbox( parent, from_=0.5, to=52.0, increment=.01, textvariable=my_double_var ) my_spinbox.pack() parent.mainloop()
Subscribe now to keep reading and get access to the full archive.
Recent Comments