RSS Forums RSS
Please support our Python advertiser: Programming Forums
Views: 1922 | Replies: 2
Reply
Join Date: Aug 2005
Location: Bosnia and Herzegovina
Posts: 147
Reputation: Micko is on a distinguished road 
Rep Power: 4
Solved Threads: 1
Micko Micko is offline Offline
Junior Poster

TKinter tough time

  #1  
Nov 28th, 2005
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2005
Posts: 132
Reputation: mawe is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 33
mawe mawe is offline Offline
Junior Poster

Re: TKinter tough time

  #2  
Nov 28th, 2005
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
Reply With Quote  
Join Date: Aug 2005
Location: Bosnia and Herzegovina
Posts: 147
Reputation: Micko is on a distinguished road 
Rep Power: 4
Solved Threads: 1
Micko Micko is offline Offline
Junior Poster

Re: TKinter tough time

  #3  
Nov 28th, 2005
Thank you very much.
I'll try to find a solid Tkinter documentation ...
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:12 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC