Here I know EVT_UPDATE_BARGRAPH is a event binder object.
then, the EVT_UPDATE_BARGRAPH passed to the first argument of Bind() method of a event handler,
self.Bind(EVT_UPDATE_BARGRAPH, self.OnUpdate)
But, according to the documentation, the Bind() method should accept a eventtype argument, not an event binder. My question is that can I event binder automatically cast to an eventtype? How did this happen?
Which Bind() documentation are you looking at? (Hint: try running "pydoc wx.EvtHandler.Bind") The C++ implementation of Bind() is different than wxPython's implementation, although they did get the basic idea from us. wxPython has had Bind() for many years, the C++ Bind is relatively new and was added in the 2.9 series.
Here I know EVT_UPDATE_BARGRAPH is a event binder object.
then, the EVT_UPDATE_BARGRAPH passed to the first argument of Bind()
method of a event handler,
self.Bind(EVT_UPDATE_BARGRAPH, self.OnUpdate)
But, according to the documentation, the Bind() method should accept a
eventtype argument, not an event binder. My question is that can I event
binder automatically cast to an eventtype? How did this happen?
Yes, I was refering the C++ doc. How you run pydoc? In my Windows installation, I can only find a pydocgui.pyw scrip under the installation directory of Tools/Scripts. When I started script, I get a search window, but it found nothing if after I typed in 'wx.EvtHandler.Bind'.
Here I know EVT_UPDATE_BARGRAPH is a event binder object.
then, the EVT_UPDATE_BARGRAPH passed to the first argument of Bind()
method of a event handler,
self.Bind(EVT_UPDATE_BARGRAPH, self.OnUpdate)
But, according to the documentation, the Bind() method should accept a
eventtype argument, not an event binder. My question is that can I event
binder automatically cast to an eventtype? How did this happen?
Which Bind() documentation are you looking at? (Hint: try running "pydoc
wx.EvtHandler.Bind") The C++ implementation of Bind() is different than
wxPython's implementation, although they did get the basic idea from us.
wxPython has had Bind() for many years, the C++ Bind is relatively new
and was added in the 2.9 series.
Here I know EVT_UPDATE_BARGRAPH is a event binder object.
then, the EVT_UPDATE_BARGRAPH passed to the first argument of Bind()
method of a event handler,
self.Bind(EVT_UPDATE_BARGRAPH, self.OnUpdate)
But, according to the documentation, the Bind() method should accept a
eventtype argument, not an event binder. My question is that can I event
binder automatically cast to an eventtype? How did this happen?
Which Bind() documentation are you looking at? (Hint: try running "pydoc
wx.EvtHandler.Bind") The C++ implementation of Bind() is different than
wxPython's implementation, although they did get the basic idea from us.
wxPython has had Bind() for many years, the C++ Bind is relatively new
and was added in the 2.9 series.
Yes, I was refering the C++ doc. How you run pydoc? In my Windows
installation, I can only find a pydocgui.pyw scrip under the
installation directory of Tools/Scripts. When I started script, I get a
search window, but it found nothing if after I typed in
'wx.EvtHandler.Bind'.
Since pydoc is also a module in the standard library you can run it like this:
python -m pydoc wx.EvtHandler.Bind
Or in the Python interactive environment you can do:
Here I know EVT_UPDATE_BARGRAPH is a event binder object.
then, the EVT_UPDATE_BARGRAPH passed to the first argument of Bind()
method of a event handler,
self.Bind(EVT_UPDATE_BARGRAPH, self.OnUpdate)
But, according to the documentation, the Bind() method should accept a
eventtype argument, not an event binder. My question is that can I
event
binder automatically cast to an eventtype? How did this happen?
Which Bind() documentation are you looking at? (Hint: try running "pydoc
wx.EvtHandler.Bind") The C++ implementation of Bind() is different than
wxPython's implementation, although they did get the basic idea from us.
wxPython has had Bind() for many years, the C++ Bind is relatively new
and was added in the 2.9 series.
Yes, I was refering the C++ doc. How you run pydoc? In my Windows
installation, I can only find a pydocgui.pyw scrip under the
installation directory of Tools/Scripts. When I started script, I get a
search window, but it found nothing if after I typed in
'wx.EvtHandler.Bind'.
Since pydoc is also a module in the standard library you can run it like
this:
python -m pydoc wx.EvtHandler.Bind
Or in the Python interactive environment you can do: