Thanks for that. I got it to work fine without scrollbars (once I'd set the BackgroundStyle), but my attempts to get scrollbars working have failed.If you run the attached and resize the window to be smaller than the image on Gtk the scrollbars appear and don't work. On Windows the scrollbars appear and do work, but the drawing gets all messed up. This is frustrating since I feel as though I'm really close!
Mark wrote:
>
> Out of curiosity, is it OK to replace `if bitmap.IsOk():` with `if
> bitmap:`?
No. "if self.bitmap:" is always going to succeed. The "if" statement
in Python only checks for a few values of truthiness: the value None,
the value False, or an empty sequence (string, list, tuple, set,
dictionary) will evaluate false. Everything else, including a bitmap
object bound to wxNullBitmap, will evaluate to true.