Add Out of Cheese Error (#1000)

* Add error dialog window title
* Add more error messages
This commit is contained in:
Veronica Berglyd Olsen
2022-02-16 17:43:50 +01:00
committed by GitHub
parent f8ddff9bc3
commit 45c4f3cb97
+8
View File
@@ -24,6 +24,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import sys
import random
import logging
from PyQt5.QtCore import Qt
@@ -86,6 +87,13 @@ class NWErrorMessage(QDialog):
self.mainBox.addWidget(self.btnBox, 2, 0, 1, 2)
self.mainBox.setSpacing(16)
self.setWindowTitle([
"+++ Out of Cheese Error +++",
"+++ Divide by Cucumber Error +++",
"+++ Whoops! Here Comes The Cheese! +++",
"+++ Please Reinstall Universe and Reboot +++",
][random.randint(0, 3)])
self.setLayout(self.mainBox)
self.setMinimumWidth(500)