22nd Aug 2019, 10:17 AM
Mohan Krishna
Mohan Krishna - avatar
2 Respostas
+ 6
So the question is why your program does not work? thread is not defined.
22nd Aug 2019, 10:23 AM
Sonic
Sonic - avatar
+ 3
Firstly, mythread(1) is not the same as mythread1(). Secondly, class declarations should not include arguments (you have class mythread1(thread):, when it should just be class mythread1:). The arguments should be moved to a constructor function (def __init__(self, thread):)
22nd Aug 2019, 10:38 AM
Daniel C
Daniel C - avatar