Python/wxPython/QuickStart: Difference between revisions
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
= Skeleton = | = Skeleton = | ||
== wxFrame == | == wxFrame without XRC == | ||
<source lang="python"> | |||
#!/usr/bin/env python3 | |||
import wx | |||
class MyApp(wx.App): | |||
def OnInit(self): | |||
frame = wx.Frame(None, -1, 'Hello World!') | |||
frame.Show() | |||
return True | |||
if __name__ == '__main__': | |||
app = MyApp() | |||
app.MainLoop() | |||
</source> | |||
== wxDialog == | == wxDialog == | ||
== wxMDIParentFrame == | == wxMDIParentFrame == | ||
Revision as of 08:45, 20 March 2019
Skeleton
wxFrame without XRC
#!/usr/bin/env python3
import wx
class MyApp(wx.App):
def OnInit(self):
frame = wx.Frame(None, -1, 'Hello World!')
frame.Show()
return True
if __name__ == '__main__':
app = MyApp()
app.MainLoop()