On Wed, 15 Sep 2004 05:33:01 -0700 "David M. Cook" <[EMAIL PROTECTED]> wrote:
> On Wed, Sep 15, 2004 at 06:28:37AM -0400, Thomas Mills Hinkle wrote: > > > Currently, I'm using popup menus in TreeViews as a hack since I > > can't pack a ComboBoxEntry into a TreeView. It would be convenient > > to use the same TreeModel for both these popup menus and > > ComboBoxEntries elsewhere inthe UI. Has anyone else implemented > > this? What I want is not only to share the Model between two ComboBoxes, but to use it for a menu (e.g. gtk.Menu) which I popup elsewhere (this is really a hack since it's not possible to use ComboBoxes as a gtk.CellRenderer, which is what I'd really want to do). I'm about to start trying to write a class which will watch a gtk.TreeModel (list store) for events and update a menu accordingly. However, it seems like this work has already been done -- the popup-menu part of the ComboBox is exactly what I want to reproduce over a TreeView row on a right click. Is there any way I can make use of this existing functionality? Tom _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
