I am trying to make a fullscreen window with tkinter but the window covers the whole screen including the windows taskbar.How do i make the window fit nicely into the screen without covering the taskbar? Here is my source code:
from tkinter import*
my_window = Tk()
my_window.title("Demo")
screen_width = my_window.winfo_screenwidth()
screen_height = my_window.winfo_screenheight()
x = (screen_width /2) - (width_of_window/2)
y = (screen_height/2) -(height_of_window/2)
my_window.geometry("%dx%d+0+0"%
(my_window.winfo_screenwidth(),my_window.winfo_screenheight())
my_window.mainloop()
I am coding in windows 10 using vs code.