Re: [pygtk] Typo?
Rob Brown-Bayliss wrote: Hi, Is gtk.gdk.Window.set_ittle() a typo? Should it be set_title()? Thanks for the bug report. Fixed in CVS now. James. -- Email: [EMAIL PROTECTED] | Linux.conf.au http://linux.conf.au/ WWW: http://www.daa.com.au/~james/ | Jan 22-25 Perth, Western Australia. ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] No menu via ItemFactory
Arjan Molenaar wrote: Hi all, I'm having some trouble displaying a menubar that is generated by an ItemFactory. Since my last update (this morning, first update since about two weeks), no menubar is displayed on top of my app. I checked the PyGtk demo app (item factory) and it doesn't show the menubar too. If I start the itemFactory demo as stand-alone app the menu is displayed though... From the ChangeLog I can't figure out what's wrong (my guess is it has to do with sinking widgets). Looks like this was caused by some reference leak fixes. When the item factory goes out of scope, it gets destroyed, and all the items it created go with it. The simple fix is to add the line: win.item_factory = item_factory I am still looking into whether we are supposed to own the return value of gtk_item_factory_new() (while fixing the problem that caused this one, it exposed the fact that you don't own the return value of gtk_window_new(), so this could be similar). James. -- Email: [EMAIL PROTECTED] | Linux.conf.au http://linux.conf.au/ WWW: http://www.daa.com.au/~james/ | Jan 22-25 Perth, Western Australia. ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] No menu via ItemFactory
On Tue, 2002-08-20 at 15:41, James Henstridge wrote: Arjan Molenaar wrote: snip Looks like this was caused by some reference leak fixes. When the item factory goes out of scope, it gets destroyed, and all the items it created go with it. The simple fix is to add the line: win.item_factory = item_factory I am still looking into whether we are supposed to own the return value of gtk_item_factory_new() (while fixing the problem that caused this one, it exposed the fact that you don't own the return value of gtk_window_new(), so this could be similar). Yep, that's it. Thanks! Arjan ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] pango marukup for lables
Hi, I have a lable in a glade file, I do this self.heading.set_use_markup(gtk.TRUE) self.heading.set_markup('bBlah Blah Blah/b') and the label literaly says: bBlah Blah Blah/b The glade file also has set the the lable to use markup so where am I going wrong? -- * * Rob Brown-Bayliss * ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] TreeModel mystery
I've figured out how to use many of the widgets in the 2.0.0 release of pygtk, but I've spent the last several hours trying to make sense of the TreeModel. Call me thick, but I don't see where some of the methods are originating, or why they are being called. Why did I have to define the 20 some methods in the class that inherited from GenericTreeModel? I've studied treemodel.py, but I still don't get it. If I delete on_iter_children I get the following error. AttributeError: on_iter_children None Some experimenting found that the following code will call on_iter_children: def f(a,b,c): print nodes: , b,c p = MyModel() p.foreach(f) Why this is happening isn't clear. I found no references to on_iter_children in the pygtk source code. It shows up in a couple binary files that are built, but that, and in the example are the only references. My goal is to populate a TreeModel with an XML tree. So far I've had no luck in getting started. I suspect that others on this list would really love to see an example that shows how to tie a XML DOM tree to the TreeModel. (An example that displayed a .glade file would be most helpful.) The example treemode.py is confusing because the path is also the content that is displayed in the tree. Does the path have to be a tuple? It isn't clear how the tree is initially populated. BTW, thanks for all the great work on pyGtk. Now if I could only figure out how to use it:-) ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/