Chasing my EraseBackground issue I tried to use SetDoubleBuffered but I find that it causes an issue that sibling controls of StaticBox are no longer shown.
This can be seen by adding at line 10 of the demo the following.
self.SetDoubleBuffered(True)
Werner