The wxPython API doc says we should derived from the wx.PyCommandEvent
instead of wx.CommandEvent. Since it's derived from wx.CommandEvent, I
want to know how can I customize an event derived from wx.NotifyEvent
such as wx.grid.GridEvent.
The wxPython API doc says we should derived from the wx.PyCommandEvent
instead of wx.CommandEvent. Since it's derived from wx.CommandEvent, I
want to know how can I customize an event derived from wx.NotifyEvent
such as wx.grid.GridEvent.
In what way do you need to customize it? What do you need to use it for?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
I'm try creating a data-aware grid and my DBGrid must bind some
wx.grid.GridEvents. I think I need process some custom events like
DBGridEvent, and I hope these events can have the same properties as
the original GridEvent.
···
2007/6/29, Robin Dunn <robin@alldunn.com>:
Can Xue wrote:
> The wxPython API doc says we should derived from the wx.PyCommandEvent
> instead of wx.CommandEvent. Since it's derived from wx.CommandEvent, I
> want to know how can I customize an event derived from wx.NotifyEvent
> such as wx.grid.GridEvent.
In what way do you need to customize it? What do you need to use it for?
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
I'm try creating a data-aware grid and my DBGrid must bind some
wx.grid.GridEvents. I think I need process some custom events like
DBGridEvent, and I hope these events can have the same properties as
the original GridEvent.
If you already have a GridEvent then you can make it an attribute of your derived event object, but it really wouldn't be that hard to duplicate what it contains.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
I think I'm so stupid, I know duplicate what wx.grid.GridEvent
contains is easy, in fact I worry about Veto(). But since I've process
these events, the 'client' program would never veto them. -_-|||
···
2007/6/30, Robin Dunn <robin@alldunn.com>:
Can Xue wrote:
> I'm try creating a data-aware grid and my DBGrid must bind some
> wx.grid.GridEvents. I think I need process some custom events like
> DBGridEvent, and I hope these events can have the same properties as
> the original GridEvent.
If you already have a GridEvent then you can make it an attribute of
your derived event object, but it really wouldn't be that hard to
duplicate what it contains.
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!