Please support our Python advertiser: Programming Forums
Views: 1922 | Replies: 2
![]() |
•
•
Join Date: Aug 2005
Location: Bosnia and Herzegovina
Posts: 147
Reputation:
Rep Power: 4
Solved Threads: 1
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
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
•
•
Join Date: Sep 2005
Posts: 132
Reputation:
Rep Power: 4
Solved Threads: 33
Hi!
You can do all this with Tkinter
Regards, mawe
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
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode