Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Worker thread?
#2
Your GUI thread would have to polls some common variable, but polling is not possible in a GUI (unless you have a manual "refresh" button). The other (and most common) solution is to have the printer thread notify the GUI thread. But this requires the printer thread to be able to send some event to the GUI even loop. Most GUI libraries support this, except tkinter...
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Reply


Messages In This Thread
Worker thread? - by micko - Feb-27-2017, 07:54 AM
RE: Worker thread? - by Ofnuts - Feb-27-2017, 09:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Joblib worker error sawtooth500 1 216 May-03-2024, 06:44 PM
Last Post: sawtooth500
  Suspending worker threads olderguy 1 2,060 Apr-21-2021, 10:28 AM
Last Post: Larz60+
  Error SQLite objects created in a thread can only be used in that same thread. binhduonggttn 3 15,707 Jan-31-2020, 11:08 AM
Last Post: DeaD_EyE
  Receive data from Redis RQ worker process freak14 0 1,933 Jul-15-2019, 12:39 PM
Last Post: freak14
  Sending a custom signal from a worker mhc 4 4,837 Jul-03-2018, 04:05 PM
Last Post: mhc
  Good way to have a worker queue accessible by multiple process? cheater 2 2,538 Dec-21-2017, 09:30 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020