#!/usr/bin/env python
# -*- coding: utf-8 -*-
from PySide import QtCore

from ..engine import Engine


class PySideEngine(Engine):
    def update_gui(self):
        QtCore.QCoreApplication.processEvents(
            QtCore.QEventLoop.AllEvents,
            int(self.pool_timeout * 1000)
        )

add PySide toolkit