Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(36)  |  Call(36)  |  Derive(0)  |  Import(0)

src/g/s/gsdview-HEAD/gsdview/tests/test_mdi.py   gsdview(Download)
 
        self.setWindowTitle(self.tr('MDI'))
        self.statusBar().showMessage(self.tr('Ready'))
 
    def closeEvent(self, event):
            child = self.createMdiChild()
            if child.loadFile(fileName):
                self.statusBar().showMessage(self.tr('File loaded'), 2000)
                child.show()
            else:
    def save(self):
        if self.activeMdiChild().save():
            self.statusBar().showMessage(self.tr('File saved'), 2000)
 
    @QtCore.Slot()
    def saveAs(self):
        if self.activeMdiChild().saveAs():
            self.statusBar().showMessage(self.tr('File saved'), 2000)
    def about(self):
        QtGui.QMessageBox.about(
            self, self.tr('About MDI'),
            self.tr('The <b>MDI</b> example demonstrates how to write '
                    'multiple document interface applications using Qt.'))