mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
forms_set_event_call_back: argument of None resets event callback to NULL.
This commit is contained in:
parent
78991fd042
commit
f6da4f62b4
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue