Needed is a fixed size frame with a title bar having only an icon, the title, and a close box. No minimize nor maximize box.
Can it be done?
Needed is a fixed size frame with a title bar having only an icon,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See http://docs.wxwidgets.org/stable/wx_wxframe.html#wxframe for the various styles available (sorry it’s the wxwidgets ref…I couldn’t find the wxPython version for some reason). You’d want to pass something like this to the frame’s style parameter:
I’m not sure if you need the last one or not. Since you’re not including RESIZE_BORDER, they won’t be able to resize it. Another way to stop resizing is to use the SetSizeHints() method.
EDIT: You probably need wx.CAPTION if you’re on Windows