Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

qfiledialog python save

    def file_save(self):
        name = QtGui.QFileDialog.getSaveFileName(self, 'Save File')
        file = open(name,'w')
        text = self.textEdit.toPlainText()
        file.write(text)
        file.close()
Source by pythonprogramming.net #
 
PREVIOUS NEXT
Tagged: #qfiledialog #python #save
ADD COMMENT
Topic
Name
9+3 =