Esempio n. 1
0
    def __init__(self, parent=None):
        super(App, self).__init__(parent)
        self.resize(700, 700)
        self.mdi = QMdiArea(self)
        self.setCentralWidget(self.mdi)
        self.future = future(self)
        self.mdi.addSubWindow(self.future)

        self.generator = generator(self)
        self.generator.show()
        self.mdi.addSubWindow(self.generator)
        self.About = About(self)
        self.About.hide()
        self.mdi.addSubWindow(self.About)
        self.mdi.addSubWindow(Errors)

        exitAction = QtGui.QAction(QtGui.QIcon('generator.png'), 'generator',
                                   self)
        exitAction.setShortcut('Ctrl+M')
        exitAction.triggered.connect(self.generator.show)
        self.toolbar = self.addToolBar('main')
        self.toolbar.addAction(exitAction)

        exitAction = QtGui.QAction(QtGui.QIcon('future.png'), 'future', self)
        exitAction.setShortcut('Ctrl+F')
        exitAction.triggered.connect(self.future.show)
        self.toolbar = self.addToolBar('future')
        self.toolbar.addAction(exitAction)

        exitAction = QtGui.QAction(QtGui.QIcon('Errors.png'), 'Errors', self)
        exitAction.setShortcut('Ctrl+E')
        exitAction.triggered.connect(self.About.show)
        self.toolbar = self.addToolBar('Errors')
        self.toolbar.addAction(exitAction)

        exitAction = QtGui.QAction(QtGui.QIcon('About_us.png'), 'About', self)
        exitAction.setShortcut('Ctrl+A')
        exitAction.triggered.connect(self.About.show)
        self.toolbar = self.addToolBar('About')
        self.toolbar.addAction(exitAction)

        self.future.show()
        self.future.setFocus()