destroying mousecallback in python

asked 2016-10-03 17:45:49 -0500

bradfield gravatar image

In C++ it is necessary to explicitly destroy a mousecallback by passing in a null pointer. But is this automatically done in python? since there is nothing like a null pointer in python, the only thing I can think of is to give reference to a callback-function, which does do nothing.

edit retag flag offensive close merge delete


did you try to set None ?

berak gravatar imageberak ( 2016-10-04 07:58:45 -0500 )edit

yes. no success. the damn thing must be callable

bradfield gravatar imagebradfield ( 2016-10-04 17:41:39 -0500 )edit