#!python
import wx
class PySimpleApp(wx.App):
def __init__(self, redirect=False, filename=None, usbBestVisual=False, clearSigInt=True):
wx.App.__init__(self, redirect, filename, useBestVisual, clearSigInt)
def OnInit(self):
return True
class MyFrame(wx.Frame):
def __init__(self, parent, id):
wx.Frame.__init__(self, parent, id, MyFrame', size=(300, 100))
if __name__ == '__main__':
app = wx.PySimpleApp()
frame = MyFrame(None, id=-1)
frame.Show(True)
app.MainLoop()





덧글