示例#1
0
 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)
示例#2
0
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)