def __init__(self): """ Creates a new instance, and assigns the appropriate widget. """ super(GuiController, self).__init__() self.app = QtGui.QApplication(sys.argv) self.window = VisQtMainWindow() self.window.here_is_the_app(self.app)
class GuiController(QtCore.QObject): """ Base class for all vis controllers. """ def __init__(self): """ Creates a new instance, and assigns the appropriate widget. """ super(GuiController, self).__init__() self.app = QtGui.QApplication(sys.argv) self.window = VisQtMainWindow() self.window.here_is_the_app(self.app)