mirror of https://github.com/python/cpython
parent
421c1319ad
commit
5f17d9a1df
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue