mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
parent
421c1319ad
commit
5f17d9a1df
1 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue