def application_start(context, view):
 context.app.set_view(view)
 view.show()
 view.raise_()
 runtask = qtutils.RunTask(parent=view)
 init_update_task(view, runtask, context.model)
 fsmonitor.current().start()
 msg_timer = QtCore.QTimer()
 msg_timer.setSingleShot(True)
 msg_timer.timeout.connect(_send_msg)
 msg_timer.start(0)
 result = context.app.exec_()
 fsmonitor.current().stop()
 QtCore.QThreadPool.globalInstance().waitForDone()
 return result

def application_start ( context , view ) : context . app . set_view ( view ) view . show ( ) view . raise_ ( ) runtask = qtutils . RunTask ( parent = view ) init_update_task ( view , runtask , context . model ) fsmonitor . current ( ) . start ( ) msg_timer = QtCore . QTimer ( ) msg_timer . setSingleShot ( True ) msg_timer . timeout . connect ( _send_msg ) msg_timer . start ( 0 ) result = context . app . exec_ ( ) fsmonitor . current ( ) . stop ( ) QtCore . QThreadPool . globalInstance ( ) . waitForDone ( ) return result
show the gui and start the main event loop .