WXPython Maximize Frame Disable Resizing
Question: I am using Python 2.7.6 and wxPython 2.8.12.1 on Linux Mint 17.1 KDE Desktop
4.14.2. I am trying to develop an application in which the window will start
maximized and there will be no maximize box or resize box. In other words
users will not be able to resize the window. Here is my code.

    
    
    import wx
    
    class Frame1(wx.Frame):
        def __init__(self, *args, **kwds):
            kwds["style"] = (wx.DEFAULT_FRAME_STYLE|wx.MAXIMIZE) & ~ (wx.RESIZE_BORDER|wx.RESIZE_BOX|wx.MAXIMIZE_BOX)
            wx.Frame.__init__(self, *args, **kwds)
            self.Layout()
            self.Show()
    
    if __name__ == "__main__":
        a = wx.App(0)
        f = Frame1(None, -1, "No Resize")
        a.MainLoop()
    

On KDE desktop, I do not get the maximized window. What is it I am missing
here?

Please help.

Thanks.


Answer: RESIZE_BOX is not a valid style, after I remove that and add MINIZE_BOX to the
styles to be removed it works for me on Win8 and Mint17 with Phoenix and with
wxPython 2.8.12.1 (gtk2-unicode):

    
    
    import wx
    
    class Frame1(wx.Frame):
        def __init__(self, *args, **kwds):
            kwds["style"] = (wx.DEFAULT_FRAME_STYLE|wx.MAXIMIZE) & ~ (wx.RESIZE_BORDER|wx.MAXIMIZE_BOX|wx.MINIMIZE_BOX)
            wx.Frame.__init__(self, *args, **kwds)
            self.Layout()
            self.Show()
    
    if __name__ == "__main__":
        a = wx.App(0)
        f = Frame1(None, -1, "No Resize")
        a.MainLoop(
    

)

