大神求解,为何无效,怎么弄正确?
问题File "C:\python\.py\python15\kjwxframe.py", line 5
wx.Frame.__init__(self,parent,id,title="创建Frame",pos=(100,100),size=(300,300)))
^
SyntaxError: invalid syntax
代码
import wx
class MyFrame(wx.Frame):
def __init__(self,parent,id):
wx.Frame.__init__(self,parent,id,title="创建Frame",pos=(100,100),size=(300,300)))
app = wx.App()
frame = MyFrame(parent=None,id=-1)
frame.Show()
app.MainLoop()