From 6f3da3b2c4eb11e2841a76e5171fc50ae0ed5943 Mon Sep 17 00:00:00 2001 From: Ivan Holmes Date: Tue, 26 Apr 2022 23:49:28 +0100 Subject: [PATCH] change icons on messageboxes to info rather than warning --- csgui/messageBox.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/csgui/messageBox.py b/csgui/messageBox.py index a3a3992..73808ff 100644 --- a/csgui/messageBox.py +++ b/csgui/messageBox.py @@ -25,7 +25,7 @@ class UnreadableMessageBox(QMessageBox): def __init__(self, fileName): super().__init__() - self.setIcon(QMessageBox.Warning) + self.setIcon(QMessageBox.Information) self.setWindowTitle(f"File \"{fileName}\" cannot be opened") self.setText("The file you have selected cannot be opened.") self.setInformativeText("Please make sure it is in the right format.") @@ -41,7 +41,7 @@ class ChordNameWarningMessageBox(QMessageBox): def __init__(self): super().__init__() - self.setIcon(QMessageBox.Warning) + self.setIcon(QMessageBox.Information) self.setWindowTitle("Unnamed chord") self.setText("Chords must have a name.") self.setInformativeText("Please give your chord a name and try again.") @@ -57,7 +57,7 @@ class SectionNameWarningMessageBox(QMessageBox): def __init__(self): super().__init__() - self.setIcon(QMessageBox.Warning) + self.setIcon(QMessageBox.Information) self.setWindowTitle("Unnamed section") self.setText("Sections must have a unique name.") self.setInformativeText( @@ -74,7 +74,7 @@ class BlockMustHaveSectionWarningMessageBox(QMessageBox): def __init__(self): super().__init__() - self.setIcon(QMessageBox.Warning) + self.setIcon(QMessageBox.Information) self.setWindowTitle("No sections found") self.setText("Each block must belong to a section, but no sections have yet been created.") self.setInformativeText( @@ -91,7 +91,7 @@ class VoicingWarningMessageBox(QMessageBox): def __init__(self): super().__init__() - self.setIcon(QMessageBox.Warning) + self.setIcon(QMessageBox.Information) self.setWindowTitle("Malformed voicing") self.setText( "The voicing you entered was not understood and has not been applied.") @@ -109,7 +109,7 @@ class LengthWarningMessageBox(QMessageBox): def __init__(self): super().__init__() - self.setIcon(QMessageBox.Warning) + self.setIcon(QMessageBox.Information) self.setWindowTitle("Block without valid length") self.setText("Blocks must have a length.") self.setInformativeText(