mirror of
https://github.com/python/cpython.git
synced 2026-05-17 18:08:50 -04:00
+4
-2
@@ -2493,8 +2493,10 @@ Tkapp_CreateTimerHandler(PyObject *self, PyObject *args)
|
||||
}
|
||||
|
||||
v = Tktt_New(func);
|
||||
v->token = Tcl_CreateTimerHandler(milliseconds, TimerHandler,
|
||||
(ClientData)v);
|
||||
if (v) {
|
||||
v->token = Tcl_CreateTimerHandler(milliseconds, TimerHandler,
|
||||
(ClientData)v);
|
||||
}
|
||||
|
||||
return (PyObject *) v;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user