This repository has been archived on 2025-01-30. You can view files and clone it, but cannot push or open issues or pull requests.
PyBitmessage-2025-01-30/src/bitmessagekivy/uikivysignaler.py
surbhi ed6cd83cae
rebase conflict fix and Ui Enhancement with dynamic addressbook updation and sent screen updation
Ui Enhancement with dynamic addressbook updation and sent screen updation

Changes made for Sent Items refresh feature with auto add new message in kivy
2019-08-02 14:28:03 +05:30

23 lines
808 B
Python

from threading import Thread
import state
import queues
from semaphores import kivyuisignaler
from helper_sql import SqlBulkExecute, sqlExecute, sqlQuery, sqlStoredProcedure
class UIkivySignaler(Thread):
def run(self):
kivyuisignaler.acquire()
while state.shutdown == 0:
try:
command, data = queues.UISignalQueue.get()
print("ssssssseeeeeeeeeeeeeeeeeeeeeeeeeewuhatsacomment.................", command)
if command == 'writeNewAddressToTable':
label, address, streamNumber = data
state.kivyapp.variable_1.append(address)
elif command == 'rerenderAddressBook':
state.kivyapp.obj_1.refreshs()
except Exception as e:
print(e)