Could you have a look at PR #152841 first, which is a trivial patch removing some dead code?
The reason is for the current issue, we will need to move threaded out of TkappObject and make it a single static variable, as in EventHook we won't have a TkappObject *self argument like in _tkinter_tkapp_mainloop_impl.
Logically it also makes sense for threaded to be a single static variable, as it is tied to the installed Tcl/Tk being threaded or not, as opposed to a particular TkappObject.
The dead code in PR #152841 also refers to the threaded variable, so I'd like to move it out of the way first.
Activity
serhiy-storchaka commented on Jun 29, 2026
@mdehoon, #148819 is merged. Note EventHook must stay polling on Windows since stdin isn't a Tcl file handler there, unlike mainloop.
mdehoon commented on Jul 1, 2026
OK I can try and submit a PR for this issue.
Yes, you're right.
serhiy-storchaka commented on Jul 15, 2026
@mdehoon, gentle ping.
mdehoon commented on Jul 16, 2026
@serhiy-storchaka
Could you have a look at PR #152841 first, which is a trivial patch removing some dead code?
The reason is for the current issue, we will need to move threaded out of TkappObject and make it a single static variable, as in EventHook we won't have a TkappObject *self argument like in _tkinter_tkapp_mainloop_impl.
Logically it also makes sense for threaded to be a single static variable, as it is tied to the installed Tcl/Tk being threaded or not, as opposed to a particular TkappObject.
The dead code in PR #152841 also refers to the threaded variable, so I'd like to move it out of the way first.
serhiy-storchaka commented on Jul 17, 2026
I prefer first to apply backportable fixes, and only after that drop support of non-threaded Tcl in main.