I have a class that inherits from wxButton. I'm capturing OnClick events
via the EVT_BUTTON() callback. In my OnClick() I want to get a DC for the
button and draw on it. I call dc = wxWindowDC(self); and python
immediately coredumps. Creating a wxClientDC() also coredumps python.
How do I go about getting a DC so that I can draw on my button?
I have a class that inherits from wxButton. I'm capturing OnClick events
via the EVT_BUTTON() callback. In my OnClick() I want to get a DC for the
button and draw on it. I call dc = wxWindowDC(self); and python
immediately coredumps. Creating a wxClientDC() also coredumps python.
How do I go about getting a DC so that I can draw on my button?
The debugging version of wxGTK has an assert that gets triggered: "DC needs
a widget"
I'll ask about this on wxwin-developers. Incedentally, it works okay on
wxMSW although the button is repainted loosing my lines as soon as the focus
moves: