Merhabalar;
HATA:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "GUI.py", line 92, in func
if KONTROL:
UnboundLocalError: local variable 'KONTROL' referenced before assignment
KODLAR:
def baslatici(self):
def func():
for demet in self.BOLUMLER:
for e in demet:
try:
e.pack()
self.aktif.append(e)
except TypeError:
KONTROL = e
while True:
if KONTROL:
for silinecek in self.aktif:
silinecek.pack_forget()
df = th.Thread(target=func)
df.start()