PDA

View Full Version : [GTK] How to use file chooser as cell renderer?



Xhacker Liu
April 27th, 2010, 01:11 PM
I want to use a file chooser as cell render. How to do it?

Thank you!

nvteighen
April 27th, 2010, 08:59 PM
What?

soltanis
April 27th, 2010, 10:25 PM
Is that even a question?

CptPicard
April 27th, 2010, 10:34 PM
In GTK, there are apparently cells... somewhere... and then there is a file chooser component... that he wants to render in this cell. :)

Xhacker Liu
April 29th, 2010, 11:43 AM
There are only CellRendererCombo, CellRendererPixbuf, CellRendererProgress and CellRendererText. But no CellRenderFileChooser!

Help me, thanks!

StephenF
April 29th, 2010, 01:06 PM
There are only CellRendererCombo, CellRendererPixbuf, CellRendererProgress and CellRendererText. But no CellRenderFileChooser!

Help me, thanks!

So you by some miracle get it to render. What makes you think events will propagate correctly from your input devices to the inner widgets?

A FileChooserButton on the other hand, you stand a fair chance with. For one thing, it's cell shaped and is not designed to go invisible when the selection is made.

More here:
http://faq.pygtk.org/index.py?req=all#13.45