Skip to content

Instantly share code, notes, and snippets.

@driscollis
Last active April 4, 2017 18:17
Show Gist options
  • Save driscollis/5c98fb52349731886b99a3ea505c3f5a to your computer and use it in GitHub Desktop.
Save driscollis/5c98fb52349731886b99a3ea505c3f5a to your computer and use it in GitHub Desktop.
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()
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