mirror of https://github.com/python/cpython
forms_set_event_call_back: argument of None resets event callback to NULL.
This commit is contained in:
parent
78991fd042
commit
f6da4f62b4
|
@ -1995,6 +1995,8 @@ forms_set_event_call_back(dummy, args)
|
|||
object *dummy;
|
||||
object *args;
|
||||
{
|
||||
if (args == None)
|
||||
args = NULL;
|
||||
my_event_callback = args;
|
||||
XINCREF(args);
|
||||
INCREF(None);
|
||||
|
|
Loading…
Reference in New Issue