这两种注册事件有什么区别?

这两种注册事件有什么区别?

self.list.Bind(wx.EVT_LEFT_DCLICK, self.OnDoubleClick)
        self.Bind(wx.EVT_LEFT_DCLICK, self.OnDoubleClick, self.list)

同样绑定一种,为什么第二种不能执行?
self.Bind(wx.EVT_LEFT_DCLICK, self.OnDoubleClick, self.list)

try this:

self.Bind(wx.EVT_LEFT_DCLICK, self.OnDoubleClick, id=self.list.GetId())  # you got to assign the "ID"