In my PyAUI app I have a pane which is from a class I've written
called `StateReprViewer`. (It is a subclass of `wx.TextCtrl`.) That
class binds `EVT_PAINT` like so:
self.Bind(wx.EVT_PAINT, self.on_paint)
And the handler looks like this:
def on_paint(self, event):
event.Skip()
if self.needs_update_flag:
# ... update stuff in the widget
On Windows it works fine. On Ubuntu the `on_paint` just doesn't get
called. (I confirmed this by putting a `print('hello!')` in the
handler.) Even when I call `Refresh` on the widget it does not get
called.
However, just for testing I did this:
self.Bind(wx.EVT_IDLE, self.on_paint)
And this *did* make `on_paint` execute, and I saw the 'hello!' and the
widget updating itself.
What is happening here?
Ram.
···
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en