src/eric7/WebBrowser/Tools/PrintToPdfDialog.py

branch
eric7
changeset 9576
be9f8e7e42e0
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
equal deleted inserted replaced
9575:635b6c5a36e1 9576:be9f8e7e42e0
36 """ 36 """
37 super().__init__(parent) 37 super().__init__(parent)
38 self.setupUi(self) 38 self.setupUi(self)
39 39
40 self.pdfFilePicker.setMode(EricPathPickerModes.SAVE_FILE_OVERWRITE_MODE) 40 self.pdfFilePicker.setMode(EricPathPickerModes.SAVE_FILE_OVERWRITE_MODE)
41 self.pdfFilePicker.setFilters(self.tr("PDF Files (*.pdf);;" "All Files (*)")) 41 self.pdfFilePicker.setFilters(self.tr("PDF Files (*.pdf);;All Files (*)"))
42 if not os.path.isabs(filePath): 42 if not os.path.isabs(filePath):
43 documentsPath = QStandardPaths.writableLocation( 43 documentsPath = QStandardPaths.writableLocation(
44 QStandardPaths.StandardLocation.DocumentsLocation 44 QStandardPaths.StandardLocation.DocumentsLocation
45 ) 45 )
46 if documentsPath: 46 if documentsPath:

eric ide

mercurial