Когда код выполняется, значения по умолчанию отображаются 0.0 для обоих полей. Я хочу изменить его на 50 и 60 соответственно или любые другие числа. Как это может быть сделано?
import tkinter as tk
import tkinter.ttk as ttk
window = tk.Tk()
ws = window.winfo_screenwidth()
hs = window.winfo_screenheight()
w = 700 # width for the Tk root
h = 585 # height for the Tk root
x = (ws / 2) - (w / 2)
y = (hs / 2) - (h / 2)
window.geometry('%dx%d+%d+%d' % (w, h, x, y))
canvas = tk.Canvas(window,bg="white",width=700, height=585, highlightthickness=0)
canvas.pack()
l2 = tk.Label(canvas, text="Circumference of Tank", font="Calibri 12", bg="white")
canvas.create_window(15,78, window=l2, anchor=tk.NW)
PL1 = tk.DoubleVar()
entry_PL1 = ttk.Entry(canvas, textvariable=PL1)
entry_PL1.config({"background": "gainsboro"})
canvas.create_window(250,90, window=entry_PL1)
l3 = tk.Label(canvas, text="Height of Tank", font="Calibri 12", bg="white")
canvas.create_window(370,78, window=l3, anchor=tk.NW)
PH1 = tk.DoubleVar()
entry_PH1 = ttk.Entry(canvas, textvariable=PH1)
entry_PH1.config({"background": "gainsboro"})
canvas.create_window(610,90, window=entry_PH1)
window.mainloop()