context menu added. alias full support, friend removing support

This commit is contained in:
ingvar1995 2016-03-10 23:04:43 +03:00
parent d641d295ca
commit 4706ef9b44
3 changed files with 107 additions and 10 deletions

View file

@ -74,11 +74,11 @@ def main():
ms = MainWindow(tox)
ms.show()
QtGui.QApplication.setStyle(get_style(settings['theme'])) # set application style
# bootstrap
for data in node_generator():
tox.bootstrap(*data)
# initializing callbacks
init_callbacks(tox, ms)
# init thread
init = InitThread(tox, ms)
init.start()
# starting thread for tox iterate
mainloop = ToxIterateThread(tox)
mainloop.start()
@ -92,6 +92,20 @@ def main():
del tox
class InitThread(QtCore.QThread):
def __init__(self, tox, ms):
QtCore.QThread.__init__(self)
self.tox, self.ms = tox, ms
def run(self):
# initializing callbacks
init_callbacks(self.tox, self.ms)
# bootstrap
for data in node_generator():
self.tox.bootstrap(*data)
class ToxIterateThread(QtCore.QThread):
def __init__(self, tox):