954,549 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Tkinter Window Fixed Size

Is there a way to make a Tkinter GUI window that the user can not change the size of?

sneekula
Nearly a Posting Maven
2,427 posts since Oct 2006
Reputation Points: 961
Solved Threads: 212
 

This should do it ...

# make a Tkinter window that is not resizable
# also disables the maximize button

from Tkinter import *

root = Tk()
# root.resizable(0, 0) or in detail ...
root.resizable(width=FALSE, height=FALSE)

# your code here .....

root.mainloop()
vegaseat
DaniWeb's Hypocrite
Moderator
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
 

Ah, that seems to work for me, thanks!

sneekula
Nearly a Posting Maven
2,427 posts since Oct 2006
Reputation Points: 961
Solved Threads: 212
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You