am trying to debug a problem with a plot refresh during an OnPaint,
and in asking for the paint event's id, i am getting event.GetId()
returning the integer -201.
this aint no ID that i registered with wxNewId(). the negative sign
has me worried something's not right here.
anyone else seen this -201 business?
i'd like to know which object is generating the event in question, am
getting one more request than i should be... and event.GetEventObj()
is in the docs, but doesnt answer to the call in wxPython. same for
event.GetObjectType() perhaps this is yet anbother case of lack of
synchronicity between wx docs and wxPython.
returns (called twice, the second is the mystery):
<C wxPaintEvent instance at _12f8c8_wxPaintEvent_p>
994357246.921
id = -201, key = None
<C wxPaintEvent instance at _12f8bc_wxPaintEvent_p>
994357246.937
id = -201, key = None
where ID is a dictionary storing the IDs __i__ generated from
wxNewId() (e.g. ID['PLOT'] is 101) and ID.getKeyForId is a little
function i have that finds the inverse (for example,
ID.getKeyforId(101) = 'PLOT').
am trying to debug a problem with a plot refresh during an OnPaint,
and in asking for the paint event's id, i am getting event.GetId()
returning the integer -201.
this aint no ID that i registered with wxNewId(). the negative sign
has me worried something's not right here.
Look for a window that you created with a -1 ID. When something is created
with a -1 then wxWindows automatically assigns it a unique ID by using a
negative counter.
i'd like to know which object is generating the event in question, am
getting one more request than i should be... and event.GetEventObj()
is in the docs, but doesnt answer to the call in wxPython. same for
event.GetObjectType() perhaps this is yet anbother case of lack of
synchronicity between wx docs and wxPython.