Re: [pygtk] Rendering arbitrary widgets in a CellRenderer

2009-05-20 Thread Walter Leibbrandt
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

Re: [pygtk] Rendering arbitrary widgets in a CellRenderer

2009-05-20 Thread Greg Ewing
Walter Leibbrandt wrote: For some inexplicable reason I've always believed that get_size_request() and size_request() are the same. I don't think it's all that inexplicable -- it's a pretty confusing piece of API design! -- Greg ___ pygtk mailing

Re: [pygtk] Rendering arbitrary widgets in a CellRenderer

2009-05-13 Thread Walter Leibbrandt
Walter Leibbrandt wrote: Hi, I took another swing at creating a custom cell renderer that can render any arbitrary widget in a TreeView. It currently works, albeit with a few annoyances. The source is available at

Re: [pygtk] Rendering arbitrary widgets in a CellRenderer

2009-05-13 Thread Neil Muller
On Wed, May 13, 2009 at 6:20 PM, Walter Leibbrandt wal...@translate.org.za wrote: Walter Leibbrandt wrote: I've got it working with a hack, but one important problem remains: The CellRenderer's size is calculated based on the string rendered for unselected cells. This means that, if the widget

[pygtk] Rendering arbitrary widgets in a CellRenderer

2009-05-08 Thread Walter Leibbrandt
Hi, I took another swing at creating a custom cell renderer that can render any arbitrary widget in a TreeView. It currently works, albeit with a few annoyances. The source is available at