Hello everyone,
I'm writing an application which displays a series of parallel graphs,
all packed in one window.
There is a main graph drawn by a gtk.DrawingArea inheriting class.
There are several other graphs, each of them, inheriting the main graph
class, overriding the
data feed and draw metho
Hi all,
I'm trying to figure out the proper signal handling for the following
situation. I have gnome.canvas object, with some
gnome.canvas.CanvasGroup things added to it. I would like to have two
handlers for the events: one when e.g. the click is made over
CanvasGroup and another one when e.g. c
On Mon, 5 Jun 2000, Luca Minuti wrote:
> I have a problem trying to install a new signal handler.
> I try this program:
>
>
> #!/usr/bin/env python
>
> from signal import *
> from gtk import *
>
> def signal_handler(sig, frame):
> print "Received signal %s" % (sig)
>
> signal(10, signal_han
On Mon, Jun 05, 2000 at 03:54:40PM +0200, Hrvoje Niksic wrote:
>
> How do you know the PID's of the other instances?
Oh, in that case, use CORBA and a registraction system. :)
I'm only kidding.
Matt
___
pygtk mailing list [EMAIL PROTECTED]
http:
"Luca Minuti" <[EMAIL PROTECTED]> writes:
> I think that the use of the signal is not the only possible solution
> for me. But I don't know others inter process comunication
> tecnique.
>
> My program must do this: if someone make some change to the data
> that the program manipulate other inst
On Mon, Jun 05, 2000 at 03:17:02PM +0200, Luca Minuti wrote:
>
> My program must do this: if someone make some change to the data that the
> program
> manipulate other instance of the same program must update their own view.
Have your program set up a named pipe and add an input hander on that
f
Hrvoje Niksic <[EMAIL PROTECTED]>,
> The problem with Gtk is that when the signal handler returns, it gives
> back control to the Gtk main loop, not to Python, so the code that is
> supposed to check for the signal-handler queue gets run only when the
> interpreter exits.
I think that the use of
"Luca Minuti" <[EMAIL PROTECTED]> writes:
> #!/usr/bin/env python
>
> from signal import *
> from gtk import *
>
> def signal_handler(sig, frame):
> print "Received signal %s" % (sig)
>
> signal(10, signal_handler)
>
> win = GtkWindow()
> win.set_usize(100,100)
> win.show()
> win.connect("de
I have a problem trying to install a new signal handler.
I try this program:
#!/usr/bin/env python
from signal import *
from gtk import *
def signal_handler(sig, frame):
print "Received signal %s" % (sig)
signal(10, signal_handler)
win = GtkWindow()
win.set_usize(100,100)
win.show()
win.con