This is a simple example of a python application with a tkinter
GUI in a main process that spawns a "worker" process. The worker process periodically communicates with the main process via a multiprocess.Queue
. multiprocess.Value
is used as well for setting a bool value that indicates whether or not the second process should stop.
- Python 3 (for
tkinter.scrolledtext
reference)
I noticed that text and certain features would sometimes be missing from the GUI on my system (MacOS Mojave 10.14.2, Python 3.7.0 installed via pyenv
). Sometimes resizing the window solved the problem; sometimes it did not.
I am not the only one: