进行GUI学习,构造一个窗口报错,请问怎么处理?问题出在哪里?

进行GUI学习,编写了下面的代码,是照着书编写的《python从入门到精通》(清华大学出版社)第15章15.2.3例子构造一个窗口,但是不知道为什么一直显示报错:TypeError: Frame(): arguments did not match any overloaded call:
overload 1: too many arguments
overload 2: argument 2 has unexpected type 'NoneType'

img


```python
#_*_coding:utf-8_*_
import wx
class MyFrame(wx.Frame):
    def __init__(self,parent,id):
        wx.Frame(self,parent,id,title="Frame",pos=(100,100),size=(300,300))

if __name__ =='__main__':
    app = wx.App()
    frame = MyFrame(parent = None,id = -1)
    frame.Show()
    app.MainLoop()

```