diff --git a/gui/Client.py b/gui/Client.py deleted file mode 100644 index 70afa529f8e6a049230f8cdeb6de08c49cf15a38..0000000000000000000000000000000000000000 --- a/gui/Client.py +++ /dev/null @@ -1,8 +0,0 @@ -from multiprocessing.connection import Client - -address = ('localhost', 6000) -conn = Client(address, authkey=None) -conn.send('close') -# can also send arbitrary objects: -# conn.send(['a', 2.5, None, int, sum]) -conn.close() diff --git a/gui/Listener.py b/gui/Listener.py deleted file mode 100644 index 3d65092b6f118532dfebc7cc544961e2ba198644..0000000000000000000000000000000000000000 --- a/gui/Listener.py +++ /dev/null @@ -1,14 +0,0 @@ -from multiprocessing.connection import Listener -from multiprocessing import Process - -address = ('localhost', 6000) # family is deduced to be 'AF_INET' -listener = Listener(address, authkey=None) -conn = listener.accept() -print('connection accepted from' + str(listener.last_accepted)) -while True: - msg = conn.recv() - # do something with msg - if msg == 'close': - conn.close() - break -listener.close() diff --git a/gui/OBSW_TmtcGUI.py b/gui/OBSW_TmtcGUI.py index b55b16003c1eee04df19bf8b10cd5203c74e0193..665af8217c208914d29eaccf3df8eb3e20c315c2 100644 --- a/gui/OBSW_TmtcGUI.py +++ b/gui/OBSW_TmtcGUI.py @@ -43,9 +43,9 @@ class TmTcGUI(Process): while True: self.conn.send("test") self.root.update() - time.sleep(2) + time.sleep(0.1) self.counter = self.counter + 1 - if self.counter == 3: + if self.counter == 50: self.conn.send("close") self.conn.close() break