Menu

#187 Pbs with wxPanel

open
nobody
None
5
2004-03-10
2004-03-10
No

I'm not sure the pb is with boa, but when I use a
wxpanel, the panel itself an its componants get a white
background. In fact the SetBackgroundColour seem to
have absolutly no effect
(SetBackgroundColour(wxColour(115, 232, 185)) for exemple)

Writing this, i figured out where was the problem : in
fact boa write
self.panel2.SetBackgroundColour(wxColour(238, 206, 247))
and next :
self._init_coll_notebook1_Pages(self.notebook1)

As my panel is inside a notebook : the init for the
page is called after the color is set, which is wrong
(or i mistake)

IMO, the correct way to do this will be :
self._init_coll_notebook1_Pages(self.notebook1)
and next :
self.panel2.SetBackgroundColour(wxColour(238, 206, 247))

This does not explain all : Why, doing nothing with the
colors, the panel is pure white....

BTW, i use BOA O.2.3 and
wxPython from (wxPythonWIN32-2.4.2.4u-Py23.exe)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB