Re: [pygtk] Any examples?

2001-03-05 Thread Russell Nelson
James Henstridge writes: > If so, then you want to use the input_add() function, which adds a > callback that will be called when there is info to be read/written > on the fd (depends on the flags passed to input_add). I don't have any > example code for this at the moment though. Something

Re: [pygtk] stopping 'delete_event'

2001-03-05 Thread James Henstridge
On Mon, 5 Mar 2001, Michele Campeotto wrote: > Hi guys, > I want to connect to the 'delete_event' of a GnomeApp and decide in > the handler if the window must be closed or not. The GTK+ docs says > that returning TRUE from the handler will do the job, but this isn't > working on pygtk. > > def

Re: [pygtk] Any examples?

2001-03-05 Thread James Henstridge
On Mon, 5 Mar 2001, Eduardo Ferro wrote: > Hi! > > Anyone have a example of how can i log the stdout of a system call > throught a scrolled window??? > I suposes that it a very normal to use python+gtk for this task, but I > can`t find a good example of it. > I actually use a timer to perodicall

[pygtk] stopping 'delete_event'

2001-03-05 Thread Michele Campeotto
Hi guys, I want to connect to the 'delete_event' of a GnomeApp and decide in the handler if the window must be closed or not. The GTK+ docs says that returning TRUE from the handler will do the job, but this isn't working on pygtk. def delete_event_handler(): if foo is not None: re

[pygtk] Any examples?

2001-03-05 Thread Eduardo Ferro
Hi! Anyone have a example of how can i log the stdout of a system call throught a scrolled window??? I suposes that it a very normal to use python+gtk for this task, but I can`t find a good example of it. I actually use a timer to perodically read from a pipe, but this solution don`t seems very g

Re: [pygtk] Finally got my pygtk widget compiled in Debian BUT ...

2001-03-05 Thread James Henstridge
On Mon, 5 Mar 2001, Danie Roux wrote: > > modify the imlib build > > procedure so that the image loader modules are dynamically linked back to > > gdk_imlib. > > Does that mean that each user would have to rebuild either Python or > gnome-python? 'Cause that's not gonna work. The program is an a

Re: [pygtk] Finally got my pygtk widget compiled in Debian BUT ...

2001-03-05 Thread Danie Roux
James Henstridge wrote: > On Mon, 5 Mar 2001, Danie Roux wrote: > > > So after specifying that the module should link against all known > > libraries, it now runs. BUT it spits out a lot of errors like this: > > > > /usr/bin/convert: No such file or directory > > gdk_imlib ERROR: Cannot load i

Re: [pygtk] Setting a bitmap label on a button

2001-03-05 Thread dg
[...] > > Yes, I know it's ugly. But even this doesn't work! I'm getting an exception > > of create_pixmap_from_xpm_d: > > Well, you aren't passing the data in the form create_pixmap_from_xpm_d > expects. If you look at an XPM file, you will notice that it is a C > declaration for an array of st

Re: [pygtk] Finally got my pygtk widget compiled in Debian BUT ...

2001-03-05 Thread James Henstridge
On Mon, 5 Mar 2001, Danie Roux wrote: > Hi, > > I've had a whole of lot of trouble with this gtk widget I wrote and > wrapped in gnome-python. The module compiled and worked on RedHat, but > would only compile on Debian. When I run it it would stop with > "Undefined > symbol ..." > > Turned out

[pygtk] Finally got my pygtk widget compiled in Debian BUT ...

2001-03-05 Thread Danie Roux
Hi, I've had a whole of lot of trouble with this gtk widget I wrote and wrapped in gnome-python. The module compiled and worked on RedHat, but would only compile on Debian. When I run it it would stop with "Undefined symbol ..." Turned out the problem was that RedHat patched Python so that modul