I am getting error after running code with below class. Clueless right now, please help
from __future__ import division
from threading import Thread
from pubsub import pub
import os
import glob
########################################################################
class process_csv_thread(Thread):
"""Test Worker Thread Class."""
An answer, just for the record. (Bare in mind, I'm no
Threadwizard.)If the
Threadis not stopped and you don't unsubscribe from the messages, there is the possibility of messages being received from a still runningThread, which will attempt to update a widget that no longer exists.I've adapted your code to include a
Stopmethod for theThread.I also
jointhe thread to ensure that it has terminated, before destroying the GUI.Obviously, this
Threadis simply spinning, you would need to ensure that a workingThreadhas a means of checking therunningvariable.Thread code
process_csv_class.pyMain program:
config_setup.inifile