Skip to content

Instantly share code, notes, and snippets.

@blitzmann
Created November 24, 2015 04:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blitzmann/02f0a703f648d00f3e1c to your computer and use it in GitHub Desktop.
Save blitzmann/02f0a703f648d00f3e1c to your computer and use it in GitHub Desktop.
import wx
class MyFrame(wx.Frame):
""" We simply derive a new class of Frame. """
def __init__(self, parent, title):
wx.Frame.__init__(self, parent, title=title, size=(200,100))
self.control = wx.TextCtrl(self, style=wx.TE_MULTILINE)
self.Show(True)
app = wx.App(False)
frame = MyFrame(None, 'Small editor')
app.MainLoop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment