faqts : Computers : Programming : Languages : Python : wxPython

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

16 of 20 people (80%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How can I make a frame no-resizeable in wxPython (wxWindows)?

Aug 24th, 2000 20:42
unknown unknown, Ruediger, Vadim Zeitlin


you need to specify the frame style, like:
wxFrame.__init__(self, parent, ID, title, wxDefaultPosition,
    wxSize(600, 450), wxSYSTEM_MENU | wxCAPTION)
Problem cont:
Ah yes, thats clear, but what style?
I tried:
wxDEFAULT_FRAME_STYLE & ~ (wxMINIMIZE_BOX | wxRESIZE_BOX | 
wxMAXIMIZE_BOX)
but that didn't work. Minimize and maximize are gone but I can still 
resize my frame.
Solution:
wxRESIZE_BORDER is the one which controls "resizing by dragging the 
frame border".