21.01.2015 Views

wxPython in Action - 错误提示:发生了异常

wxPython in Action - 错误提示:发生了异常

wxPython in Action - 错误提示:发生了异常

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1.1 <strong>wxPython</strong><br />

<br />

1wxPthon<br />

2<br />

3<strong>wxPython</strong>logo<br />

<br />

1.2 <strong>wxPython</strong><br />

bare.py<br />

import wx #1<br />

class App(wx.App): #2<br />

def OnInit(self): #3<br />

frame = wx.Frame(parent=None, title=’Bare’)<br />

frame.Show()<br />

return True<br />

app = App() #4<br />

app.Ma<strong>in</strong>Loop() #5<br />

20 / 565

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!