check for self.progress None value before calling update

ironpython
András Veres-Szentkirályi 2013-11-05 19:13:08 +01:00
rodzic 0b0254fc2a
commit 1cafbc1521
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -58,7 +58,8 @@ class Transmitter(object):
self.audio_thread.start()
elif self.audio_thread is not None:
self.audio_thread.stop()
self.progress.update_image()
if self.progress is not None:
self.progress.update_image()
def audio_thread_ended(self):
self.tx_enabled.set(0)