Last active
April 4, 2017 18:17
-
-
Save driscollis/5c98fb52349731886b99a3ea505c3f5a to your computer and use it in GitHub Desktop.
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 MyPanel(wx.Panel): | |
| """""" | |
| def __init__(self, parent): | |
| """Constructor""" | |
| wx.Panel.__init__(self, parent) | |
| class MyFrame(wx.Frame): | |
| """""" | |
| def __init__(self): | |
| """Constructor""" | |
| wx.Frame.__init__(self, parent=None, title="Add Buttons") | |
| panel = MyPanel(self) | |
| self.Show() | |
| if __name__ == "__main__": | |
| app = wx.App(False) | |
| frame = MyFrame() | |
| app.MainLoop() |
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): | |
| """Constructor""" | |
| wx.Frame.__init__(self, parent=None) | |
| self.SetTitle("Add Buttons") | |
| self.fSizer = wx.BoxSizer(wx.VERTICAL) | |
| panel = wx.Panel(self) | |
| self.Show() | |
| 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