I have a simple tkinter app:
import tkinter as tk
from tkinter import ttk
root = tk.Tk()
my_var = tk.IntVar()
slider = ttk.Scale(root, from_ = 0, to = 100, variable = my_var)
slider.pack()
label = ttk.Label(root, text = 'test', textvariable = my_var)
label.pack()
# run
root.mainloop()
It works fine but the text displayed in the label is a floating point value, not an integer. This isn't that much of an issue but I am confused on a conceptual level: Shouldn't IntVar only store integers (i.e. convert floating point numbers when it stores them)? If it doesn't do it, what would be the point of DoubleVar?