[pygtk] constructors in h2def.py

2002-05-01 Thread Arjan Molenaar
Hi, I used h2def.py this weekend and noticed it does not create 'is-constructor-of' entries in the generated code. I started browsing the code and noticed this is a todo item. I solved it this way: - a constructor function ends with '_new' and returns a pointer - h2def converts the text before

[pygtk] defs in gnome-python

2002-05-01 Thread Arjan Molenaar
Hi, I noticed the .defs files in gnome-python/gnome-python are not copied to shape/pygtk/2.0/defs. This is very unpleasant since I inherit from GnomeCanvas for DiaCanvas view class. I posted a bug (#80448) on bugzilla.gnome.org and applied a patch. Regards, Arjan

[pygtk] Inheriting from GObject

2002-05-01 Thread Arjan Molenaar
Hi, I'm working on a python wrapper for DiaCanvas2 (hence the previous postings ;-) and came up with some thoughts... First of all: the properties and signal handling in Python is really neat. But it's screaming for more... Shouldn't it be nice if classes inherited from GObject (or GTK+ objects

Re: [pygtk] Memory usage question

2002-05-01 Thread Graham Ashton
On Wed, 2002-05-01 at 02:07, James Henstridge wrote: I've been experimenting with libglade from Python, and have found that I can use up an awful amount of memory incredibly quickly by destroying and re-creating widgets. I've written a small script that demonstrates it. If you could run

[pygtk] dialog window function

2002-05-01 Thread Erik Grinaker
Hi all I have just started out with Python, and am playing around a bit with pygtk and libglade. I have some experience with structured programming, but this is my first encounter with object-oriented programming. I am trying to create a generic function for a Yes/No type dialog box, but the

Re: [pygtk] dialog window function

2002-05-01 Thread Matt Wilson
in PyGTK+ 2.x: label.set_property('text', text) Cheers, Matt On Wed, May 01, 2002 at 03:31:18PM +0200, Erik Grinaker wrote: Also; I seem to be having some problems when the function is called the second time around; Python gives this error: File main.py, line 142, in

Re: [pygtk] dialog window function

2002-05-01 Thread Erik Grinaker
On Wed, 2002-05-01 at 15:47, Matt Wilson wrote: in PyGTK+ 2.x: label.set_property('text', text) I'm using 0.6.8 for GTK+ 1.2, so it didn't work - but I'm getting a similar error whenever I try re-opening a window which has been destroy()ed, so it's surely just some silly error I've made.

Re: [pygtk] dialog window function

2002-05-01 Thread Steve McClure
On Wed, 2002-05-01 at 10:34, Erik Grinaker wrote: On Wed, 2002-05-01 at 15:47, Matt Wilson wrote: in PyGTK+ 2.x: label.set_property('text', text) I'm using 0.6.8 for GTK+ 1.2, so it didn't work - but I'm getting a similar error whenever I try re-opening a window which has been

[pygtk] Widget tree traversal

2002-05-01 Thread Steve McClure
I can't find anything to get the parent of a widget. There are methods to reparent and unparent but I don't see any method to just retrieve the parent widget. I'm using Gtk 1.2 Thanks, -- Steve McClure 430 10th St NW Racemi Suite N-210

Re: [pygtk] dialog window function

2002-05-01 Thread Erik Grinaker
On Wed, 2002-05-01 at 16:41, Steve McClure wrote: On Wed, 2002-05-01 at 10:34, Erik Grinaker wrote: I'm using 0.6.8 for GTK+ 1.2, so it didn't work - but I'm getting a similar error whenever I try re-opening a window which has been destroy()ed, so it's surely just some silly error I've

Re: [pygtk] Widget tree traversal

2002-05-01 Thread Steve McClure
On Wed, 2002-05-01 at 10:43, Steve McClure wrote: Please excuse the interruption. A quick search turned up the answer. I can't find anything to get the parent of a widget. There are methods to reparent and unparent but I don't see any method to just retrieve the parent widget. I'm using

[pygtk] GtkTextBuffer.set_modified

2002-05-01 Thread Pier
Hi to all, with the new release of pygtk I've problem with gtkTextBuffer.set_modified method More precisely it semms to be broken, please can anybody check it? Thanks Pier ___ pygtk mailing list [EMAIL PROTECTED]

[pygtk] defs in gnome-python

2002-05-01 Thread Arjan Molenaar
Hi, I noticed the .defs files in gnome-python/gnome-python are not copied to shape/pygtk/2.0/defs. This is very unpleasant since I inherit from GnomeCanvas for DiaCanvas view class. I posted a bug (#80448) on bugzilla.gnome.org and applied a patch. Regards, Arjan

[pygtk] gnome-python2.0

2002-05-01 Thread Stephen Kennedy
Is there any chance of getting this to work with the vicious build scripts? I'm not an auto* expert but would really like to use glade2 with python. Stephen. ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk