How are GDI objects such as Pens, Brushes, and Fonts deleted.
In Windows, one normally calls DeleteObject(). I do not see a correspoding
function in wxWindows().
I see that wxWindows had destructors for each class, so I assume the
destructor calls DeleteObject().
However, a destructor is called when the instance falls out of scope. How
does Python map to this functionality.
Is the destructor called at garbage collection time? Does Python have a way
to know when the variable has fallen out of scope to invoke delete on the
C++ object?