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

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

src/p/y/pyqt5-HEAD/examples/mainwindows/sdi/sdi.py   pyqt5(Download)
    def documentWasModified(self):
        self.setWindowModified(True)
 
    def init(self):
        self.setAttribute(Qt.WA_DeleteOnClose)
 
        self.textEdit.document().setModified(False)
        self.setWindowModified(False)
 
        self.setWindowTitle("%s[*] - SDI" % self.strippedName(self.curFile))

src/p/y/pyqt5-HEAD/examples/mainwindows/application/application.py   pyqt5(Download)
    def documentWasModified(self):
        self.setWindowModified(self.textEdit.document().isModified())
 
    def createActions(self):
        self.newAct = QAction(QIcon(':/images/new.png'), "&New", self,
    def setCurrentFile(self, fileName):
        self.curFile = fileName
        self.textEdit.document().setModified(False)
        self.setWindowModified(False)
 

src/p/y/pyqt5-HEAD/examples/richtext/textedit/textedit.py   pyqt5(Download)
        self.textEdit.document().redoAvailable.connect(
                self.actionRedo.setEnabled)
        self.setWindowModified(self.textEdit.document().isModified())
        self.actionSave.setEnabled(self.textEdit.document().isModified())
        self.actionUndo.setEnabled(self.textEdit.document().isUndoAvailable())
 
        self.setWindowTitle(self.tr("%s[*] - %s" % (shownName, "Rich Text")))
        self.setWindowModified(False)
 
    def fileNew(self):