Sep-23-2018, 01:09 PM
Looking at the traceback and error, something in your code needs to be an iterable (list, tuple, dict, or set) and is instead an integer. So, let's look for an integer being passed in. On line 11, you have:
t = threading.Thread(target = varUpdater, name = 'Thread1', args = (targetVar))In order for the interpreter to read a single length tuple as a tuple, you need a comma after the item. Otherwise, the interpreter reads it as the type of the content rather than the iterable sequence (i.e. (tagetVar) == targetVar). To make this work, do this:
t = threading.Thread(target = varUpdater, name = 'Thread1', args = (targetVar,))With the comma added, the interpreter now understands that this is a tuple.