Comments (4)
Try installing the tcl-thread
package. I ran into this same issue on Raspbian.
from tkthread.
Thanks a lot.
apt-get install tcl-thread
did the trick for python3 (I was only searching for tk, not tcl). And the packages works beautifully with python3, there is almost no delay when updating from a background thread, nice! Exactly what I was looking for, an implementation of runOnUiThread
or invokeLater
or however it is called in other GUI frameworks.
However, I do not know how to proceed for pypy (where the package is really needed!) and i don't know anything about tcl. I have seen that tcl-thread
install also /usr/lib/tcltk/x86_64-linux-gnu/thread2.8.2/libthread2.8.2.so
in addition to some tcl files and apparently pypy
has its own tcl/tk and still complains about a missing Thread package.
If that works it should really become part of the standard library...
from tkthread.
ok, i just blindly copied the entire installation directory of tcl-thread
into the pypy installation and that worked.
cp -rp /usr/lib/tcltk/x86_64-linux-gnu/thread2.8.2 /opt/pypy3.6-7.1.1-beta-linux_x86_64-portable/lib/tcl/
Might not be clean, but I don't complain. It works as smoothly and fast under pypy as under python3.
Having tkt
in the standard (or call it invoke_later
or whatever) would make tkinter much more usable for all people that do know other UI frameworks and threading. Thanks for the package.
from tkthread.
Is there a way to get this working on Windows 10, as it is in Linux shown above?
from tkthread.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tkthread.