fivecat opened this issue on Sep 27, 2008 ยท 6 posts
adp001 posted Sun, 28 September 2008 at 9:39 AM
Sounds like a pointer to something inside your script is left active after your script ends.
Background: Python is allways active and any script started is working in the same Python namespace. There is no "reset" after your script stops.
Try this: Start any script (probably one using a listbox). Exit the script. Create and run a new script containing:
**print "LEFT OVERS"
print "Globalsn",globals()
**You will see a list of objects/variables left over from the previously started script.
Better use classes. If you declare most of your script in class myApp, after
root=Tk()
app=myApp(root)
root.mainloop()
del app
del root
All your objects should be deleted via Pythons garbage collector.