El s�b, 11-10-2003 a las 17:14, Thomi Richards escribi�: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > hi guys, > > > Is it possible to display other widgets than a check button or radio button > within a certain cell in a TreeView? > Yes and no (keep reading)
> I'd like to display a combo box in a cell within a treeview. I'm fairly sure > I've seen other gtk ap[ps doing this, so I'm hoping it's possible... > You can do that with C. With Python you can create a custom CellRenderer to render the cells in the way you want. What you can not do in Python is a CellRender with edit capabilities, like a combo box. If you want a CellRenderer to support edition it must implement the CellEditable interface. There is no way to make a Python class to implement a GLib interface with the current PyGTK bindings. I guess we can add another dictionary like __gsignals__ or __gproperties__ called __ginterfaces__ that the gobject.register_type() function could use to make this possible in PyGTK. I'll try to understand how the PyGTK bindings work and I'll try to implement this functionality. Regards Lorenzo Gil Sanchez _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
