[Tkinter-discuss] Tkinter-discuss Digest, Vol 18, Issue 2

Harlin Seritt harlinseritt at yahoo.com
Sun Aug 28 00:36:09 CEST 2005


Hi Sajjad,
 
You can see how to do this here: http://www.pythonware.com/library/tkinter/introduction/x9867-window-geometry-methods.htm at the very bottom of the page.
 
The resizable option takes a tuple instead of something like resizable=False.
 
Essentially, you'll need to do the following:
 
master.resizable(0, 0) # as in x=0 and y=0 if master is an instance of Tk()
 
This will keep the window from being resized and make the 'maximum' button on the window to be shown as inactive (or 'grayed out' as some may say).
 
HTH,
 
Harlin Seritt


tkinter-discuss-request at python.org wrote:
Send Tkinter-discuss mailing list submissions to
tkinter-discuss at python.org

To subscribe or unsubscribe via the World Wide Web, visit
http://mail.python.org/mailman/listinfo/tkinter-discuss
or, via email, send a message with subject or body 'help' to
tkinter-discuss-request at python.org

You can reach the person managing the list at
tkinter-discuss-owner at python.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tkinter-discuss digest..."


Today's Topics:

1. Setting the size of a Window (Sajjad Hussain)


----------------------------------------------------------------------

Message: 1
Date: Fri, 26 Aug 2005 07:26:57 -0700 (PDT)
From: Sajjad Hussain 
Subject: [Tkinter-discuss] Setting the size of a Window
To: tkinter-discuss at python.org
Message-ID: <20050826142657.65562.qmail at web30301.mail.mud.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1

Hi,

I am trying to restrict the user from resizing the Tk
window. (So my labels on the graphics don't get
distorted). Can anyone please point me in the right
direction to do so.

Regards,

Sajjad

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


------------------------------

_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss at python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss


End of Tkinter-discuss Digest, Vol 18, Issue 2
**********************************************

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tkinter-discuss/attachments/20050827/9b47cb7d/attachment.htm


More information about the Tkinter-discuss mailing list