Add Out of Cheese Error (#1000)
* Add error dialog window title * Add more error messages
This commit is contained in:
committed by
GitHub
parent
f8ddff9bc3
commit
45c4f3cb97
@@ -24,6 +24,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
import random
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from PyQt5.QtCore import Qt
|
from PyQt5.QtCore import Qt
|
||||||
@@ -86,6 +87,13 @@ class NWErrorMessage(QDialog):
|
|||||||
self.mainBox.addWidget(self.btnBox, 2, 0, 1, 2)
|
self.mainBox.addWidget(self.btnBox, 2, 0, 1, 2)
|
||||||
self.mainBox.setSpacing(16)
|
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.setLayout(self.mainBox)
|
||||||
|
|
||||||
self.setMinimumWidth(500)
|
self.setMinimumWidth(500)
|
||||||
|
|||||||
Reference in New Issue
Block a user