Fix dialog exec in PyQt6.

Closes #32.
main
Alex Huszagh 2022-04-27 12:38:47 -05:00
parent ae5956fc0c
commit f307bed419
1 changed files with 2 additions and 5 deletions

View File

@ -805,10 +805,7 @@ def test_calendar(widget, *_):
def _test_standard_button(window, app, button):
message = QtWidgets.QMessageBox(window)
message.addButton(button)
if args.pyqt6:
message.exec()
else:
message.exec_()
execute(message)
def test_ok_button(_, window, __, ___, ____, app):
_test_standard_button(window, app, Ok)
@ -951,7 +948,7 @@ def test_issue25(widget, window, font, width, *_):
def launch_filedialog(folder):
dialog = QtWidgets.QFileDialog()
dialog.setFileMode(Directory)
if dialog.exec_():
if execute(dialog):
folder.setText(dialog.selectedFiles()[0])
def launch_fontdialog(value):