forms_set_event_call_back: argument of None resets event callback to NULL.

This commit is contained in:
Guido van Rossum 1993-07-26 15:24:57 +00:00
parent 78991fd042
commit f6da4f62b4
1 changed files with 2 additions and 0 deletions

View File

@ -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);