leech
leech

Reputation: 378

Maximized Window with Tkinter

I want my window to be maximized, like I pressed the button left to the X. Not Fullscreen. I find that this can be with root.state('zoomed'). At the start it looks like its working, but it's not. The window sometimes appears maximized but when I click on it, it goes fullscreen.

I just want the taskbar on Windows to be shown and the Tkinter window to be maximized.

import tkinter as tk

root = tk.Tk()
root.title('')
root.state('zoomed')
root.resizable(0, 0)
root.mainloop()

Upvotes: 2

Views: 1676

Answers (1)

leech
leech

Reputation: 378

I found out that it doesn't work because of root.resizable(0,0). After deleting this line it works.

Upvotes: 1

Related Questions