[wxPython-users] wxStaticBoxSizer and wizard.py produce GTK warnings

Robin Dunn robin at alldunn.com
Mon Mar 3 11:19:17 PST 2008


Frank Aune wrote:
> Hello,
> 
> If using StaticBoxSizers in the wx wizard demo, I get alot of:
> 
> (python:13110): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to 
> allocate widget with width -2 and height 15
> 
> warnings. You can try this for yourself by adding:
> 
> box = wx.StaticBox(self, -1, 'Test')
> bsizer = wx.StaticBoxSizer(box, wx.VERTICAL)
> self.sizer.Add(bsizer)
> 
> to the init method of class UseAltBitmapPage. I'm running wx-2.8 on Ubuntu 
> Gutsy Gibbon.

I don't get the warning here, so this may have been fixed already by 
some other recent change.  OTOH, do you still get it if you put 
something inside the static box sizer that makes it be large enough that 
it won't try to make the label be a negative size?


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list