Re: AttributeError: 'Attributes' object has no attribute 'saveFile'

2006-08-31 Thread t . mitchell
Hi Sounds like you've got a wizard-type interface thing happening. I haven't used wxGlade but I have done similar things in GTK several times. Try putting all the windows in a notebook widget with hidden tabs. Put the 'Next Page' button and the filename outside the notebook. This makes the filen

Re: Trouble finding references that are keeping objects alive

2006-08-31 Thread t . mitchell
More info: The project has cyclic references to the objects in the projects, but this should be handled by gc.collect(). Here's is my 'project still alive' test: # store a weakref for debugging p = weakref.ref(self.data.project) self.data.setProject(None, None)

Trouble finding references that are keeping objects alive

2006-08-31 Thread t . mitchell
Hi, I have a python gtk app that allows users to have one project open at a time. I have recently discovered that projects are not being freed when they are closed - the refcount is not hitting zero. I have used gc.get_referrers() to track down a few culprits, but I have now found that some of m