[wxPython] wxStaticBox background

Hello,

for some reason, wxStaticBox doesn't seem to re-paint its background
anymore in wxPython 2.1.16 - is that intentional?

The following app demonstrates the problem:

···

----------------------------------------------------------

from wxPython.wx import *

class MyFrame(wxFrame):
    def __init__(self, *argT, **optionD):
  apply(wxFrame.__init__, (self,) + argT, optionD)
        #
        box = wxStaticBox(self, -1, 'weird box')
        #
        lc = wxLayoutConstraints()
        lc.top.SameAs(self, wxTOP)
        lc.bottom.SameAs(self, wxBOTTOM)
        lc.left.SameAs(self, wxLEFT)
        lc.right.SameAs(self, wxRIGHT)
        box.SetConstraints(lc)
  
class MyApp(wxApp):
    def OnInit(self):
  frame = MyFrame(None, -1, "WeirdStaticBox",
      size=wxSize(100,200))
  frame.Show(true)
  return true

app = MyApp()
app.MainLoop()

--------------------------------------------------

F. Oliver Gathmann
CRI Inc., 80 Ashford St., 02134 Boston, MA, USA
phone: (617) 787-5700#224, fax: (617) 787-4488
e-mail: ogathmann@cri-inc.com

for some reason, wxStaticBox doesn't seem to re-paint its background
anymore in wxPython 2.1.16 - is that intentional?

The following app demonstrates the problem:

Put it on a wxPanel instead of directly on the frame.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!