callbacks update - now callbacks can ask window for repaint

This commit is contained in:
ingvar1995 2016-02-24 11:33:49 +03:00
parent 9145974c7f
commit 4d4c0cb56a
4 changed files with 39 additions and 7 deletions

View file

@ -5,7 +5,6 @@ from profile import Profile, tox_factory
import sys
from PySide import QtCore, QtGui
from callbacks import init_callbacks
from tox import Tox
from bootstrap import node_generator
@ -74,6 +73,7 @@ def main():
# bootstrap
for data in node_generator():
tox.bootstrap(*data)
# initializing callbacks
init_callbacks(tox, ms)
# starting thread for tox iterate
mainloop = ToxIterateThread(tox)