=?ISO-8859-15?B?RS4gQS4gVGFj428=?= <tacao@brturbo.com> writes:
> On my machines, this program displays a Frame containing a
> 200x200 blue square, PLUS what looks like about 5 pixels of gray
> border to the right, and 10 pixels of gray border at the bottom.You probably need to set some alignment flags here. The blue panel
inside the frame in your code is aligned to the top and to the left of
the frame.[...]
Try this:
[...]
self.sizer2.Add(self.bluepanel, 0, flag=wx.ALIGN_CENTER_VERTICAL)
self.sizer1.AddSizer(self.sizer2, 1, flag=wx.ALIGN_CENTER_HORIZONTAL)
I tried it, but this just distributes the gray pixels over
TOP/BOTTOM and LEFT/RIGHT margins -- it doesn't get rid of them.
Which means my confusion is still there: why, when I do a
self.Fit() on a parent Frame containing just one Panel, are there
*any* gray pixels at all? Why doesn't the Frame just fit itself
snugly and completely over the Panel? Where do the border pixels
*come from*?
···
--
Leo Breebaart <leo@lspace.org>