[pygtk] ToggleButton args break with python2.6

2009-05-30 Thread Thomas Mills Hinkle
After a recent OS upgrade, I found that my code broke with the following: self.pause = gtk.ToggleButton(_('_Pause'),True) RuntimeError: more argument specifiers than keyword list entries (remaining format:'):GtkToggleButton.__init__') Testing at the python shell confirms. I get the same

Re: [pygtk] ToggleButton args break with python2.6

2009-05-30 Thread Thomas Mills Hinkle
On Sat, May 30, 2009 at 8:20 AM, Thomas Mills Hinkle tmhin...@gmail.comwrote: After a recent OS upgrade, I found that my code broke with the following: self.pause = gtk.ToggleButton(_('_Pause'),True) RuntimeError: more argument specifiers than keyword list entries (remaining

Re: [pygtk] ToggleButton args break with python2.6

2009-05-30 Thread Paul Pogonyshev
Thomas Mills Hinkle wrote: After a recent OS upgrade, I found that my code broke with the following: self.pause = gtk.ToggleButton(_('_Pause'),True) [...] python2.6 / pygtk 2.14: error There is a typo in PyGTK code. Can you check if the following helps? Paul diff --git

[pygtk] How can I modify widgets from a forked process?

2009-05-30 Thread Link Master
How can I modify widgets from a forked process (through os.fork)? This is what I currently which does not work: self.pid = os.fork() if self.pid == 0: self.start.set_label(Start) self.hours.set_sensitive(True) self.minutes.set_sensitive(True) self.seconds.set_sensitive(True)

Re: [pygtk] How can I modify widgets from a forked process?

2009-05-30 Thread Alexandre González
Do you like to use fork()? Perhaps you must use threads, because the threads shared the variables, but with fork you must use shared memory or something similar to access to same widgets. I'm saying this because C programming, but I don't know how is implemented the forks and thread threatment at