This is just a way to insure that wxOGLCleanUp is called as the application exits.
When __cu goes out of scope, it will be deleted, thus calling wxOGLCleanUp. __cu
doesn't go out of scope until the program exits.
Matthew
···
-----Original Message-----
From: Diego Prestes [mailto:lobow@brturbo.com]
Sent: Friday, May 23, 2003 11:09 AM
To: wxPython-users@lists.wxwindows.org
Subject: [wxPython-users] Class __Cleanup
Hello! I saw this class in many programs using OGL and say this class is
obrigatory. I dont know what it do in the programs, if someone could
explain me...
Diego
class __Cleanup:
cleanup = wxOGLCleanUp
def __del__(self):
self.cleanup()
__cu = __Cleanup()
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org