Skip to content

Commit

Permalink
Update documentcontroller.py
Browse files Browse the repository at this point in the history
Update `Qt.Dialog` to `Qt.WindowType.Dialog` for PyQt6.
  • Loading branch information
sdouglas committed Dec 15, 2022
1 parent 50ed888 commit 09b4d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cadnano2/controllers/documentcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ def writeDocumentToFile(self, filename=None):
with open(filename, 'w') as f:
encode(self._document, helixOrderList, f)
except IOError:
flags = Qt.Dialog | Qt.MSWindowsFixedSizeDialogHint | Qt.WindowType.Sheet
flags = Qt.WindowType.Dialog | Qt.MSWindowsFixedSizeDialogHint | Qt.WindowType.Sheet
errorbox = QMessageBox(QMessageBox.Critical,
"cadnano",
"Could not write to '%s'." % filename,
Expand Down

0 comments on commit 09b4d07

Please sign in to comment.