[wxPython-users] ANN: FancyButtonPanel Control For wxPython
Michele Petrazzo
michele.petrazzo at unipex.it
Tue Oct 3 00:19:43 PDT 2006
Andrea Gavana wrote:
> Hello NG,
>
Hi Andrea,
> The widget has been tested on wxPython 2.6.3.3, with Python 2.4 on
> Windows XP.
>
Tried on linux with wx 2.6 and 2.7 and found a problem:
when I resize the frame, if I increase its size, all work, but is I
decrease, the FancyButtonPanel don't resize itself.
After some tries, I see that GetClientRect (line 301), don't return the
right size (may be a wx bug?), so I add a simple patch that solve this:
#Line 302
if not sys.platform.startswith("win"):
#Bug solver for gtk
parent_w = self.GetParent().GetSize()[0]
rect = list(rect)
rect = rect[:2] + [parent_w] + [rect[3]]
rect = wx.Rect(*rect)
Ciao,
Michele
More information about the wxpython-users
mailing list