- changed the message when encountering a critical error - it now looks better
This commit is contained in:
@@ -11,6 +11,7 @@ CHANGELOG for FlatCAM beta
|
|||||||
|
|
||||||
- in Gerber Object trying to solve the issue with too little details on plotting geometry with inch units
|
- in Gerber Object trying to solve the issue with too little details on plotting geometry with inch units
|
||||||
- working to differentiate between temporary units change and permanent units change
|
- working to differentiate between temporary units change and permanent units change
|
||||||
|
- changed the message when encountering a critical error - it now looks better
|
||||||
|
|
||||||
26.09.2021
|
26.09.2021
|
||||||
|
|
||||||
|
|||||||
10
FlatCAM.py
10
FlatCAM.py
@@ -4,7 +4,7 @@ import traceback
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from PyQt6 import QtWidgets
|
from PyQt6 import QtWidgets
|
||||||
from PyQt6.QtCore import QSettings, QTimer, Qt
|
from PyQt6.QtCore import QSettings, QTimer
|
||||||
from app_Main import App
|
from app_Main import App
|
||||||
from appGUI import VisPyPatches
|
from appGUI import VisPyPatches
|
||||||
|
|
||||||
@@ -124,12 +124,12 @@ if __name__ == '__main__':
|
|||||||
try:
|
try:
|
||||||
msgbox = QtWidgets.QMessageBox()
|
msgbox = QtWidgets.QMessageBox()
|
||||||
displayed_msg = "The application encountered a critical error and it will close.\n"\
|
displayed_msg = "The application encountered a critical error and it will close.\n"\
|
||||||
"Please report this error to the developers.\n" \
|
"Please report this error to the developers."
|
||||||
"**************************************************************\n\n"
|
|
||||||
displayed_msg += msg
|
|
||||||
msgbox.setInformativeText(displayed_msg)
|
|
||||||
|
|
||||||
|
msgbox.setText(displayed_msg)
|
||||||
|
msgbox.setDetailedText(msg)
|
||||||
msgbox.setWindowTitle("Critical Error")
|
msgbox.setWindowTitle("Critical Error")
|
||||||
|
# msgbox.setWindowIcon()
|
||||||
msgbox.setIcon(QtWidgets.QMessageBox.Icon.Critical)
|
msgbox.setIcon(QtWidgets.QMessageBox.Icon.Critical)
|
||||||
|
|
||||||
bt_yes = msgbox.addButton("Quit", QtWidgets.QMessageBox.ButtonRole.YesRole)
|
bt_yes = msgbox.addButton("Quit", QtWidgets.QMessageBox.ButtonRole.YesRole)
|
||||||
|
|||||||
Reference in New Issue
Block a user