Re: [pygtk] PyGObject leaking?

2007-04-11 Thread Tony Nelson
At 10:54 PM -0400 4/10/07, Mario Beauchamp wrote: >Hi folks, > >On 4/10/07, Tony Nelson <[EMAIL PROTECTED]> wrote: >> >> Cyclic garbage can be viewed as an error in the data structure, preventable >> by either breaking the cycle manually when the object is expected to become >> unreferenced, or by

[pygtk] gobject.type_register for class hierarchy?

2007-04-11 Thread Skip Montanaro
Suppose I have this sort of class relationship: class A(gobject.GObject): def __init__(self): gobject.GObject.__init__(self) ... class B(A): ... A is abstract. Do I need to call gobject.type_register for just A, just B or both? Thanks, -- Skip

Re: [pygtk] gobject.type_register for class hierarchy?

2007-04-11 Thread Paul Pogonyshev
Skip Montanaro wrote: > Suppose I have this sort of class relationship: > > class A(gobject.GObject): > def __init__(self): > gobject.GObject.__init__(self) > ... > > class B(A): > ... > > A is abstract. Do I need to call gobject.type_register for

[pygtk] How do I set radio buttons from a program

2007-04-11 Thread Peter Robinson
I am writing a simple applet whose button3 menu contains a list of radio buttons. When the applet starts up I want to be able to run a test and base the radio button settings on the result of the test. I have spend many hours looking at tutorials, manuals and google'ing for an answer to my probl

Re: [pygtk] PyGObject leaking?

2007-04-11 Thread Mario Beauchamp
Hi folks. On 4/11/07, Tony Nelson <[EMAIL PROTECTED]> wrote: >http://openev.svn.sourceforge.net/viewvc/openev/trunk/src/pymod/gvobject.py?revision=6&view=markup Well, the rot may be deeper than that, inside pygobject or pygtk code. ;) (I can't make heads or tails of that code, sorry if I am sla

Re: [pygtk] How do I set radio buttons from a program

2007-04-11 Thread Tony Nelson
At 10:29 AM +1000 4/12/07, Peter Robinson wrote: >I am writing a simple applet whose button3 menu contains a list of radio >buttons. >When the applet starts up I want to be able to run a test and base the >radio button settings on the result of the test. >I have spend many hours looking at tutorial

Re: [pygtk] PyGObject leaking?

2007-04-11 Thread Tony Nelson
At 10:17 PM -0400 4/11/07, Mario Beauchamp wrote: >Hi folks. > >On 4/11/07, Tony Nelson <[EMAIL PROTECTED]> wrote: >> >http://openev.svn.sourceforge.net/viewvc/openev/trunk/src/pymod/gvobject.py?revision=6&view=markup >> >> Well, the rot may be deeper than that, inside pygobject or pygtk code. ;) >

[pygtk] PyGTK Thread problem

2007-04-11 Thread Rodrigo Uroz
Hi folks I started with Python yesterday and discovered this great work you've done. I have a problem with a code I'm using to learn, I was wondering if you would mind giving it a look, because I'm stuck. The problem, as you can see, is that the Thread doesn't get executed until the main progra

Re: [pygtk] How do I set radio buttons from a program

2007-04-11 Thread Volker Helm
Are you sure, I thought it would be the methode .toggled() (ref gtk.ToggleButton.toggled) Bye, Volker Original-Nachricht Datum: Wed, 11 Apr 2007 22:43:43 -0400 Von: Tony Nelson <[EMAIL PROTECTED]> An: [EMAIL PROTECTED] Betreff: Re: [pygtk] How do I set radio buttons from a pr