Re: [pygtk] PyGObject leaking?

2007-04-12 Thread Greg Ewing
Mario Beauchamp wrote: Hi folks. On 4/11/07, Tony Nelson <[EMAIL PROTECTED]> wrote: > > Python will collect objects as soon as they become unreferenced. > Immediately. Well, it turns out it's not immediate. Someone told me that Python 2.4 does a collect every 700 deallocations Both of these

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

2007-04-12 Thread Peter Robinson
John Dennis wrote: On Thu, 2007-04-12 at 10:29 +1000, 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 m

Re: [pygtk] PyGTK Thread problem

2007-04-12 Thread Rodrigo Uroz
Regarding this, another problem. Now I get my thread to update the GUI through a callback in my main thread, but the TextView gets updated only the first time, then the callback gets called again and again but doesn't automatically update the GUI (I have to click in the TextView to update it). Wh

Re: [pygtk] PyGObject leaking?

2007-04-12 Thread Tony Nelson
At 10:19 AM -0400 4/12/07, John Ehresman wrote: >Tony Nelson wrote: >> I say again: Python will collect objects as soon as they become >> unreferenced. Immediately. It has /nothing/ to do with Garbage >> Collection. It is Reference Counting, and it is the standard way that >> Python has always

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

2007-04-12 Thread John Dennis
On Thu, 2007-04-12 at 10:29 +1000, 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 look

Re: [pygtk] PyGObject leaking?

2007-04-12 Thread John Ehresman
Tony Nelson wrote: I say again: Python will collect objects as soon as they become unreferenced. Immediately. It has /nothing/ to do with Garbage Collection. It is Reference Counting, and it is the standard way that Python has always reclaimed unused objects, even before there was Cyclic GC.

Re: [pygtk] PyGTK Thread problem

2007-04-12 Thread Rodrigo Uroz
Thank you!!, that did the trick. Now I have another problems but surely because I'm still learning this. The thread works. I really like python, will try to encourage my mates to give it a try. Cheers. On 4/12/07, Johan Dahlin <[EMAIL PROTECTED]> wrote: Rodrigo Uroz wrote: > Hi folks > > I st

Re: [pygtk] PyGTK Thread problem

2007-04-12 Thread Johan Dahlin
Rodrigo Uroz wrote: > 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

[pygtk] PyGTK cursor images/snapshots

2007-04-12 Thread Aravind Vijayakumar
Hi all, It looks like the documentation shipped with PyGTK doesn't have the .png images for the various cursor types. Neither does the documentation on pygtk.org. I whipped up a small script to allow the user to see the different cursors. Hope it's useful for someone other than me! -Aravind