Phoenix - wx.PyCommandEvent

Werner <[email protected]>
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
Hi,

With Phoenix I see a problem with a custom event that the 'setter' is 
not called.

The event is define like this:

class ScEventDbItemSet(wx.PyCommandEvent):
     """Custom event to be notified when a dbItem is set on the control"""
     def __init__(self, evtType, id):
         wx.PyCommandEvent.__init__(self, evtType, id)
         self._dbItem = None

     @property
     def dbItem(self):
         return self._dbItem

     @dbItem.setter
     def dbItem(self, dbitem):
         self._dbItem = dbitem

and I am using it like this:

         evt = ScEventDbItemSet(scEVT_SEARCHCTRL_DBITEMSET, self.GetId())
         evt.dbItem = item
         self.GetEventHandler().ProcessEvent(evt)

Anyone knows why this is not working?

Werner

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.