type degradation of event objects in Phoenix

2 views
Skip to first unread message

ji...@cs.cofc.edu

unread,
May 1, 2013, 11:48:13 PM5/1/13
to wxPyth...@googlegroups.com
I have an example in which the program creates an event object that inherits from wx.PyCommandEvent and submits it to wx.PostEvent. When the event emerges in the handler, its type is the parent class wx.PyCommandEvent and not the subclass. The program immediately fails when it tries to call a subclass method on the event. I'm sending the file with this post. My comments are marked with #### (or even more #'s). There are a couple of comments that came with it. They are marked with single #'s. One is totally obvious. I plead newbie ignorance on the other one. I got this example by copy and paste from a website that I don't remember.

I have another example that you can have if you want it. It's a smaller file, but more complicated because it's my attempt to get anythread to work in Python 3.3 with Phoenix. I was doing pretty well until I ran into this same problem. Now it has me stymied.
threadqueue.py

Robin Dunn

unread,
May 2, 2013, 8:07:00 PM5/2/13
to wxPyth...@googlegroups.com
I thought I had already solved this problem, but perhaps it was only a
partial solution. I'll try to look into it again soon.


--
Robin Dunn
Software Craftsman
http://wxPython.org

Robin Dunn

unread,
May 4, 2013, 12:48:05 AM5/4/13
to wxPyth...@googlegroups.com
Please try again with the next build.

http://trac.wxwidgets.org/changeset/73915
Reply all
Reply to author
Forward
0 new messages