Skip to content

Commit

Permalink
Compatibility pyqt5-pyqt6
Browse files Browse the repository at this point in the history
  • Loading branch information
robertobucher committed May 17, 2024
1 parent c64cbf6 commit 29cb6bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions toolbox/supsisim/supsisim/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ def shvAction(self):
dlg = QMessageBox()
dlg.setWindowTitle("Warning!")
dlg.setText("Enable tuning option")
dlg.setStandardButtons(QMessageBox.Ok)
dlg.setIcon(QMessageBox.Warning)
dlg.setStandardButtons(QMessageBox.StandardButton.Ok)
dlg.setIcon(QMessageBox.Icon.Warning)
dlg.exec()
return

Expand All @@ -237,8 +237,8 @@ def shvAction(self):
dlg = QMessageBox()
dlg.setWindowTitle("Warning!")
dlg.setText("No connection to broker")
dlg.setStandardButtons(QMessageBox.Ok)
dlg.setIcon(QMessageBox.Warning)
dlg.setStandardButtons(QMessageBox.StandardButton.Ok)
dlg.setIcon(QMessageBox.Icon.Warning)
dlg.exec()
return

Expand Down

0 comments on commit 29cb6bf

Please sign in to comment.