[wxPython-users] stopping window from resizing

Christopher Barker Chris.Barker at noaa.gov
Thu Aug 10 16:57:09 PDT 2006



justin mcguire wrote:
> ok im sure there is a way and ive looked all over the place but i cant seem
> to find any way to make a frame that is unable to be resized, 

.SetSizeHints() will do it, if you set the minSize and maxSize the same.

There is also this hint in the wx docs, under wx.Frame Window styles:

"""
The default frame style is for normal, resizeable frames. To create a 
frame which can not be resized by user, you may use the following 
combination of styles:

wxDEFAULT_FRAME_STYLE & ~ (wxRESIZE_BORDER | wxRESIZE_BOX | wxMAXIMIZE_BOX)
"""

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer
                                     		
NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list