Not Painting in a wxNotebook

I posted up a related query a few days ago, but this is my current problem. I'm trying to do some custom painting on a panel. But absolutely nothing is coming up, though the OnPaint method is getting called. I've included a link to a bare bones example. What am I doing wrong?

http://talsit.org/image/kikuraTest.zip

···

------------------------------------------------------------------------
Contact:
Team Bondi Pty Ltd
Level 2, 608 Harris Street
Ultimo, NSW 2007
Tel: (02) 8218 1500
Fax: (02) 8218 1550
Web: http://www.teambondi.com
------------------------------------------------------------------------
This email may contain confidential information. If you are not
the intended recipient, you may not copy or deliver this message to
anyone. In such case, you should destroy this message and kindly
notify the sender by reply email. Opinions, conclusions and other
information in this message that do not relate to the official business
of our firm shall be understood as neither given nor endorsed by it.
------------------------------------------------------------------------

talsit wrote:

I posted up a related query a few days ago, but this is my current problem. I'm trying to do some custom painting on a panel. But absolutely nothing is coming up, though the OnPaint method is getting called. I've included a link to a bare bones example. What am I doing wrong?

You bind the EVT_PAINT for self.visiblePanel, but in the handler you create a DC for self. Try creating the DC for self.visiblePanel.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!