[pygtk] Trying to wrap a gobject

2009-07-20 Thread gabriele lanaro
Hi, I'm try to wrap the eggtrayicon like in the tutorial at this page: http://www.ibm.com/developerworks/linux/library/l-wrap/ The tutorial il very old, but It's better than the faq, so I have a problem: I generate with h2defs and eggtrayicon.h the trayicon.defs file I wrote a trayicon.override I

Re: [pygtk] Help passing a widget to another class instance

2009-07-20 Thread Kim Adil
Solved: I had to add a self.xxx variable to the init method of the page class and make it equal to the pparent, so that the save method on the page class had a variable it could access. I would be interested in what people consider good practice in this sort of situation. Kim Kim wrote:

Re: [pygtk] Help passing a widget to another class instance

2009-07-20 Thread Xenofon Papadopoulos
self.get_parent().set_tab_label_text( self, blahblah ) On Mon, Jul 20, 2009 at 2:04 PM, Kim Adil ka...@proactiveindustrial.netwrote: Hi, I have a class for a glade window, that contains a notebook and I have another class for notebook pages. I want to pass the (pointer to) notebook widget

[pygtk] liststore column names

2009-07-20 Thread Imre Horvath
Hi! How can I get the column names in a liststore? Thanks in advance: Imre Horvath ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] liststore column names

2009-07-20 Thread Walter Leibbrandt
Imre Horvath wrote: How can I get the column names in a liststore? [column.get_title() for column in treeview.get_columns()] I assume you are referring to the column names of a gtk.TreeView, since gtk.ListStores don't have column names. -- Walter Leibbrandt Software

Re: [pygtk] liststore column names

2009-07-20 Thread Imre Horvath
Thank you, this works, previously I try to get it from ListStore... Imre Horvath On Mon, 2009-07-20 at 15:14 +0200, Walter Leibbrandt wrote: Imre Horvath wrote: How can I get the column names in a liststore? [column.get_title() for column in treeview.get_columns()] I assume you are