This repository has been archived on 2025-02-19. You can view files and clone it, but cannot push or open issues or pull requests.

29 lines
846 B
Python
Raw Normal View History

2019-12-23 19:47:23 +05:30
"""
Ui Singnaler for kivy interface
"""
from threading import Thread
2019-12-23 19:47:23 +05:30
import queues
2019-12-23 19:47:23 +05:30
import state
from semaphores import kivyuisignaler
2019-05-31 19:47:03 +05:30
class UIkivySignaler(Thread):
2019-12-23 19:47:23 +05:30
"""Kivy ui signaler"""
def run(self):
kivyuisignaler.acquire()
while state.shutdown == 0:
try:
command, data = queues.UISignalQueue.get()
if command == 'writeNewAddressToTable':
2019-12-23 19:47:23 +05:30
address = data[1]
state.kivyapp.variable_1.append(address)
2019-10-09 22:04:42 +05:30
# elif command == 'rerenderAddressBook':
# state.kivyapp.obj_1.refreshs()
# Need to discuss this
2019-06-06 19:18:20 +05:30
elif command == 'updateSentItemStatusByAckdata':
state.kivyapp.status_dispatching(data)
except Exception as e:
2019-05-31 19:47:03 +05:30
print(e)