[pygtk] Rendering arbitrary widgets in a CellRenderer

Walter Leibbrandt walter at translate.org.za
Wed May 20 21:31:36 WST 2009


Neil Muller wrote:
> Since you're looking to allocate enough space to display the widget,
> you shouldn't need to realize the widgets first. It looks like the
> problem is with your use of set_size_request() and get_size_request(),
> since get_size_request() only returns the values set via
> set_size_request(). Just using size_request() should do what you want.
For some inexplicable reason I've always believed that get_size_request() and size_request() are the same. Thank you for enlightening me, it helped a lot.

-- 
Walter Leibbrandt                  Software Developer
Recent blogs:
* Conquering the CellRendererWidget
http://www.translate.org.za/blogs/walter/en/content/conquering-cellrendererwidget




More information about the pygtk mailing list