On 27.08.2003 23:57:38 Christian Reis wrote:

>On Wed, Aug 27, 2003 at 01:19:34PM +0200, [EMAIL PROTECTED] 
wrote:
>> is it somehow possible to display (py)gtk widgets
>> in a gtk.TreeView, not just text, pixmaps or
>> checkbuttons, as is possible with the existing
>> CellRenderers? Do I have to create a new
>
>Yes.

Ok, according to the examples already posted on this
list, the TreeView's style attribute can be used to draw
all the stuff provided by the gtk.Style class, such as
text, arrows, lines, etc. What I would like to have is 
the cellrenderer to display a real gtk widget, with
all it's functionality. Does anyone have an idea, how 
this can be done? The hard way would probably be to 
create all the stuff needed for such a widget as 
described above (gtk.Style) and then somehow set up 
some control functionality needed by the widget (don't 
know how yet and whether this is possible at that 
level). Using a gtk widget would of course make the 
whole thing a lot easier.

>> CellRenderer that can display the widget I want
>> to have displayed?
>
>Yes, though people have been discussing the current "known" way is not
>exactly kosher. See the thread here:
>
>http://www.daa.com.au/pipermail/pygtk/2003-August/005731.html

This implementation uses gtk.Windows to display the 
editors, which seems a possible solution for lists, 
but not for real trees where nodes must be expanded. 
And even for lists there are some problems, e.g., the 
windows displaying the editors (or other cell contents)
do not move if the window containing the treeview is 
moved.

thanks for any further hints,
Bernhard
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to