- more work in PyQt6 porting

This commit is contained in:
Marius Stanciu
2021-08-05 21:14:37 +03:00
committed by Marius
parent 584134a27a
commit 1d88491a18
4 changed files with 30 additions and 28 deletions

View File

@@ -174,7 +174,7 @@ class AppTextEditor(QtWidgets.QWidget):
def handlePrint(self):
dialog = QtPrintSupport.QPrintDialog()
if dialog.exec() == QtWidgets.QDialog.Accepted:
if dialog.exec() == QtWidgets.QDialog.DialogCode.Accepted:
self.code_editor.document().print_(dialog.printer())
def handlePreview(self):