Re: [pygtk] pygtk fatal exceptions

2009-05-29 Thread Gabriele Lanaro
Hi I've found a good solution in a site that solved all my debug and testing problems... the trick is to not invoke gtk.main(), but use this function: def refresh_gui(delay=0): while gtk.events_pending(): gtk.main_iteration_do(block=False) time.sleep(delay) Every time you have to

Re: [pygtk] Problem communicating two class

2009-05-29 Thread Alexandre González
Thanks for the reply and lot of thanks for the autoconnection doc, I didn't know about it. About the __init__ it doesn't work: Traceback (most recent call last): File "/home/alex/Escritorio/pymoc/stuff/events.py", line 21, in on_about_activate self.parent['aboutdialog'].show() NameError: glo

Re: [pygtk] Problem communicating two class

2009-05-29 Thread Guillaume Bouchard
Hello, On Fri, May 29, 2009 at 05:23:50PM +0200, Alexandre González wrote: > Hi! Perhaps this could be a stupid question, but I'm trying to do it and I > can't. > > I did a skeleton of a pygtk application to learn about use it, but i have a > problem... I create a parent class [1] to procedure th

[pygtk] Problem communicating two class

2009-05-29 Thread Alexandre González
Hi! Perhaps this could be a stupid question, but I'm trying to do it and I can't. I did a skeleton of a pygtk application to learn about use it, but i have a problem... I create a parent class [1] to procedure the events (it create the events connections with instrospection and it works very well

Re: [pygtk] pygtk fatal exceptions

2009-05-29 Thread Guillaume Bouchard
On Fri, May 29, 2009 at 02:43:06PM +0200, Alessandro Dentella wrote: > > My aim is to be able to directly "jump" to the exception with "python -m > > pdb myprogram.py" and then '(c)ontinue' and wait for the exception to be > > catch by pdb. > > I'm not really following you, but I debug gtk program

[pygtk] reply address for this list - retry

2009-05-29 Thread Alessandro Dentella
I did it again, so I repost the same request as some months ago. Even if you are not the person in the position to modify it, I'd like to know if there are any objections to setting a default reply to the list. sandro *:-) Hi, I found mysel many times answering to the original author rather t

Re: [pygtk] pygtk fatal exceptions

2009-05-29 Thread Alessandro Dentella
On Fri, May 29, 2009 at 02:22:12PM +0200, Guillaume Bouchard wrote: > Hello, > > I want to debug a pygtk program with PDB (the internal python debuger) > because the program raise an exception. > > My aim is to be able to directly "jump" to the exception with "python -m > pdb myprogram.py" and th

[pygtk] pygtk fatal exceptions

2009-05-29 Thread Guillaume Bouchard
Hello, I want to debug a pygtk program with PDB (the internal python debuger) because the program raise an exception. My aim is to be able to directly "jump" to the exception with "python -m pdb myprogram.py" and then '(c)ontinue' and wait for the exception to be catch by pdb. But the pygtk main

[pygtk] [ANNOUNCE] Gaphas 0.4.0

2009-05-29 Thread Arjan Molenaar
Hi all, I'm pleased to announce the next release of Gaphas, a diagram widget for GTK+/Python. Gaphas is a MVC canvas that uses Cairo for rendering. One of the nicer things of this widget is that the user (model) is not bothered with bounding box calculations: this is all done through Cairo.