Hi
I'm updating my code and the event area is not very clear to me.
Previously I was doing this
def EVT_HIGH_TASK(win, func):
win.Connect(-1, -1, wxEVT_HIGH_TASK, func)
but with the new binder how do I pass the function I want called?
EVT_HIGH_TASK = wx.PyEventBinder(wxEVT_HIGH_TASK, 1)
Nigel
···
---
Nigel W. Moriarty
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
Hi
I'm updating my code and the event area is not very clear to me.
Previously I was doing this
def EVT_HIGH_TASK(win, func):
win.Connect(-1, -1, wxEVT_HIGH_TASK, func)
but with the new binder how do I pass the function I want called?
EVT_HIGH_TASK = wx.PyEventBinder(wxEVT_HIGH_TASK, 1)
It's handled in the Bind call now. When you replace your old
EVT_HIGH_TASK(win, func) calls with self.Bind(EVT_HIGH_TASK, func) the
internals of Bind will handle it.
Look at the PythonEvents section in the demo for an example.
···
On 11/20/06, Nigel W. Moriarty <nw_moriarty@yahoo.com> wrote:
Nigel
---
Nigel W. Moriarty
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org