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".