mirror of
https://github.com/dnet/pySSTV.git
synced 2026-04-05 06:15:19 +00:00
extracted method Transmitter.stop
This commit is contained in:
parent
ad6112aa9e
commit
ee600d916e
1 changed files with 6 additions and 2 deletions
|
|
@ -56,11 +56,15 @@ class Transmitter(object):
|
||||||
if self.tx_enabled.get():
|
if self.tx_enabled.get():
|
||||||
self.audio_thread = AudioThread(self.sstv, self)
|
self.audio_thread = AudioThread(self.sstv, self)
|
||||||
self.audio_thread.start()
|
self.audio_thread.start()
|
||||||
elif self.audio_thread is not None:
|
else:
|
||||||
self.audio_thread.stop()
|
self.stop()
|
||||||
if self.progress is not None:
|
if self.progress is not None:
|
||||||
self.progress.update_image()
|
self.progress.update_image()
|
||||||
|
|
||||||
|
def stop(self):
|
||||||
|
if self.audio_thread is not None:
|
||||||
|
self.audio_thread.stop()
|
||||||
|
|
||||||
def audio_thread_ended(self):
|
def audio_thread_ended(self):
|
||||||
self.tx_enabled.set(0)
|
self.tx_enabled.set(0)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue