[pygtk] CellRendererButton, or how to pack a Button inside a TreeView

Walter Leibbrandt walter at translate.org.za
Tue Sep 16 16:08:07 WST 2008


Hi,

I took the liberty of doing a quick search and found this: 
http://propython.googlecode.com/svn/gui/chaveiro/eagle.py (class 
_CellRendererButton). I don't know if/how it works, but that should get 
you started. :)

Regards,

Walter

Federico wrote:
> Hi all,
> Is there a way to embed a Button inside a TreeView?
> I've tried creating a custom CellRenderer but could not find the way
> to paint the button inside it.
> I'd like this button to have RELIEF_NONE until it is hovered, then
> showing up as a normal prelit button.
> Is this possible?
>
> Feel free to suggest a different solution and to ask for more
> information if that's not clear :-)
>
> Thanks,
> Federico
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>   

-- 
Walter Leibbrandt                  http://translate.org.za/blogs/walter
Software Developer                                  +27 12 460 1095 (w)
Translate.org.za

Recent blogs:
* The first official release of Spelt
http://www.translate.org.za/blogs/walter/en/content/first-official-release-spelt
* Auto-completion and auto-correction for Gtk+ widgets
* Gtk+ Tip of the Day: Modifying the subject of an event being processed




More information about the pygtk mailing list