Hi, folks
I'm really having a bad time learning Tkinter. I started this morning and it was gooing pretty wel, but I cam accross this problem.
How to make application windows of fixed size i.e. maximize button in the title bar is disabled?
And also is there any way to change that caption tk in the title bar?
I choose to learn Tkinter since I assumed that it 100 % Python multiplatform bla bla, but it seems now that wxPython is a better choice....?

- Micko

Hi!

You can do all this with Tkinter ;)

from Tkinter import *

root = Tk()
# change the title
root.title("Great Title")
# set the geometry of the main window, the
# format is widthxheight+x_offset+y_offset
root.geometry("200x200+0+0")
# the following can also be written as root.resizable(0,0)
# now you can't change the width and height of the
# main window, but I'm not sure if it disables the
# maximize button
root.resizable(width=False,height=False)

root.mainloop()

Regards, mawe

Thank you very much.
I'll try to find a solid Tkinter documentation ...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.