Re: [pygtk] Patch to those who use glc.py (Python Glade Code Generator)

2001-10-22 Thread Russell Nelson
Christian Robottom Reis writes: > On Fri, 19 Oct 2001, Russell Nelson wrote: > > > Is there that much difference between using libglade to load a .glade > > file versus loading a .py generated from the same .glade file? > > Well, you can maintain the glade file through glade throughout the

Re: [pygtk] How to use GnomeDialog from an applet

2001-10-22 Thread James Henstridge
Akos Polster wrote: >My panel applet hangs after I create a GnomeDialog and call its >run_and_close() method. How to avoid this? > Hangs or becomes unresponsive? If it has hung, if you move a window over the panel applet, it won't redraw. If it redraws, it hasn't hung. gnome_dialog_run runs

Re: [pygtk] Bug crept into gtk-types.c...

2001-10-22 Thread Matt Wilson
There's quite a bit of work to make everything happy - I'll have it fixed up by morning. Matt On Mon, Oct 22, 2001 at 02:03:34PM -0500, Skip Montanaro wrote: > > Thanks, I eventually figured out the coercion stuff. To work around the > problem I figured I'd just can float conversion for now.

Re: [pygtk] Bug crept into gtk-types.c...

2001-10-22 Thread Skip Montanaro
Matt> btw, if you want to know how this function works, see: Matt> http://www.python.org/doc/2.2/api/number.html#l2h-229 Thanks, I eventually figured out the coercion stuff. To work around the problem I figured I'd just can float conversion for now. Seems safe enough, since apparently

Re: [pygtk] Bug crept into gtk-types.c...

2001-10-22 Thread Matt Wilson
btw, if you want to know how this function works, see: http://www.python.org/doc/2.2/api/number.html#l2h-229 On Mon, Oct 22, 2001 at 01:24:53PM -0500, Skip Montanaro wrote: > Compiling gtk-types.c (v. 1.29) from the latest CVS gives several warnings > and two errors:

Re: [pygtk] Bug crept into gtk-types.c...

2001-10-22 Thread Matt Wilson
This all has to do with numeric coercion. CVS GTK+ has just changed the GdkAtom to be a pointer, not a long. Stick with a released 1.3.9 or wait till it gets fixed. Cheers, Matt On Mon, Oct 22, 2001 at 01:24:53PM -0500, Skip Montanaro wrote: > Compiling gtk-types.c (v. 1.29) from the latest C

[pygtk] Bug crept into gtk-types.c...

2001-10-22 Thread Skip Montanaro
Compiling gtk-types.c (v. 1.29) from the latest CVS gives several warnings and two errors: gtk-types.c: In function `pygdk_atom_coerce': gtk-types.c:1262: warning: passing arg 1 of `PyInt_FromLong' makes integer from pointer without a cast gtk-types.c:1266: pointer value used where a

[pygtk] GDK_SELECTION_PRIMARY

2001-10-22 Thread Jon Nelson
I'm having trouble implementing selecting in PyGTK. Using the following as a guide: http://www.gtk.org/tutorial/sec-supplyingtheselection.html where does GDK_SELECTION_PRIMARY get mapped into PyGTK? I don't see it anywhere. What I want to do is, when the appropriate menu entry is selected, copy a

Re: [pygtk] Patch to those who use glc.py (Python Glade Code Generator)

2001-10-22 Thread Christian Robottom Reis
On Fri, 19 Oct 2001, Russell Nelson wrote: > Is there that much difference between using libglade to load a .glade > file versus loading a .py generated from the same .glade file? Well, you can maintain the glade file through glade throughout the lifetime of your product, versus either a) mainta

[pygtk] How to use GnomeDialog from an applet

2001-10-22 Thread Akos Polster
My panel applet hangs after I create a GnomeDialog and call its run_and_close() method. How to avoid this? - Akos. P.S. I have pygtk 0.6.8 and pygnome 1.4.1. To duplicate: import os import gnome.applet from gtk import * from gnome.ui import * def popup(*args): dlg = GnomeDialog("Cl