Created
April 16, 2015 21:08
-
-
Save driscollis/28d2abf6dc6d1c79feaa to your computer and use it in GitHub Desktop.
wxPython maximize example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wx | |
| class MyFrame(wx.Frame): | |
| def __init__(self): | |
| style = (wx.DEFAULT_FRAME_STYLE|wx.MAXIMIZE) & ~ (wx.RESIZE_BORDER|wx.MINIMIZE_BOX) | |
| wx.Frame.__init__(self, None, title='Test') | |
| panel = wx.Panel(self) | |
| btn = wx.Button(panel, label="Close") | |
| btn.Bind(wx.EVT_BUTTON, self.onClose) | |
| self.ShowFullScreen(True) | |
| def onClose(self, event): | |
| self.Close() | |
| if __name__ == '__main__': | |
| app = wx.App(False) | |
| frame = MyFrame() | |
| app.MainLoop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment