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

Discover more from Tips and Hints for Aerospace Engineers

Subscribe now to keep reading and get access to the full archive.

Continue reading