diff --git a/cura/Arranging/ArrangeObjectsAllBuildPlatesJob.py b/cura/Arranging/ArrangeObjectsAllBuildPlatesJob.py index 5f43b8e1a0..e18f8098df 100644 --- a/cura/Arranging/ArrangeObjectsAllBuildPlatesJob.py +++ b/cura/Arranging/ArrangeObjectsAllBuildPlatesJob.py @@ -150,5 +150,5 @@ class ArrangeObjectsAllBuildPlatesJob(Job): no_full_solution_message = Message(i18n_catalog.i18nc("@info:status", "Unable to find a location within the build volume for all objects"), title = i18n_catalog.i18nc("@info:title", "Can't Find Location"), - message_type = Message.MessageType.ERROR) + message_type = Message.MessageType.WARNING) no_full_solution_message.show() diff --git a/cura/MultiplyObjectsJob.py b/cura/MultiplyObjectsJob.py index dcfb60a921..4c1caf137c 100644 --- a/cura/MultiplyObjectsJob.py +++ b/cura/MultiplyObjectsJob.py @@ -75,5 +75,5 @@ class MultiplyObjectsJob(Job): no_full_solution_message = Message( i18n_catalog.i18nc("@info:status", "Unable to find a location within the build volume for all objects"), title = i18n_catalog.i18nc("@info:title", "Placing Object"), - message_type = Message.MessageType.ERROR) + message_type = Message.MessageType.WARNING) no_full_solution_message.show() diff --git a/plugins/Toolbox/src/CloudSync/RestartApplicationPresenter.py b/plugins/Toolbox/src/CloudSync/RestartApplicationPresenter.py index 0a3bf5fcb2..8776d1782a 100644 --- a/plugins/Toolbox/src/CloudSync/RestartApplicationPresenter.py +++ b/plugins/Toolbox/src/CloudSync/RestartApplicationPresenter.py @@ -17,8 +17,7 @@ class RestartApplicationPresenter: message = Message(self._i18n_catalog.i18nc("@info:generic", "You need to quit and restart {} before changes have effect.", - app_name), - message_type = Message.MessageType.WARNING) + app_name)) message.addAction("quit", name="Quit " + app_name, diff --git a/plugins/UM3NetworkPrinting/src/Messages/LegacyDeviceNoLongerSupportedMessage.py b/plugins/UM3NetworkPrinting/src/Messages/LegacyDeviceNoLongerSupportedMessage.py index 1a7c4ebe3b..9014cc2d70 100644 --- a/plugins/UM3NetworkPrinting/src/Messages/LegacyDeviceNoLongerSupportedMessage.py +++ b/plugins/UM3NetworkPrinting/src/Messages/LegacyDeviceNoLongerSupportedMessage.py @@ -14,7 +14,7 @@ class LegacyDeviceNoLongerSupportedMessage(Message): """Singleton used to prevent duplicate messages of this type at the same time.""" def __init__(self) -> None: - super(LegacyDeviceNoLongerSupportedMessage, self).__init__( + super().__init__( text = I18N_CATALOG.i18nc("@info:status", "You are attempting to connect to a printer that is not " "running Ultimaker Connect. Please update the printer to the " "latest firmware."), diff --git a/plugins/UM3NetworkPrinting/src/Messages/MaterialSyncMessage.py b/plugins/UM3NetworkPrinting/src/Messages/MaterialSyncMessage.py index 648a8005b5..887cfaa5e8 100644 --- a/plugins/UM3NetworkPrinting/src/Messages/MaterialSyncMessage.py +++ b/plugins/UM3NetworkPrinting/src/Messages/MaterialSyncMessage.py @@ -20,14 +20,12 @@ class MaterialSyncMessage(Message): """Singleton used to prevent duplicate messages of this type at the same time.""" def __init__(self, device: "UltimakerNetworkedPrinterOutputDevice") -> None: - super(MaterialSyncMessage, self).__init__( + super().__init__( text = I18N_CATALOG.i18nc("@info:status", "Cura has detected material profiles that were not yet installed " "on the host printer of group {0}.", device.name), title = I18N_CATALOG.i18nc("@info:title", "Sending materials to printer"), lifetime = 10, - dismissable = True, - message_type = Message.MessageType.POSITIVE - ) + dismissable = True) def show(self) -> None: if MaterialSyncMessage.__is_visible: diff --git a/plugins/UM3NetworkPrinting/src/Messages/NotClusterHostMessage.py b/plugins/UM3NetworkPrinting/src/Messages/NotClusterHostMessage.py index 7bb1e231ba..059b81b39e 100644 --- a/plugins/UM3NetworkPrinting/src/Messages/NotClusterHostMessage.py +++ b/plugins/UM3NetworkPrinting/src/Messages/NotClusterHostMessage.py @@ -23,7 +23,7 @@ class NotClusterHostMessage(Message): """Singleton used to prevent duplicate messages of this type at the same time.""" def __init__(self, device: "UltimakerNetworkedPrinterOutputDevice") -> None: - super(NotClusterHostMessage, self).__init__( + super().__init__( text = I18N_CATALOG.i18nc("@info:status", "You are attempting to connect to {0} but it is not " "the host of a group. You can visit the web page to configure " "it as a group host.", device.name), diff --git a/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadBlockedMessage.py b/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadBlockedMessage.py index d526d8423b..853f6a1380 100644 --- a/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadBlockedMessage.py +++ b/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadBlockedMessage.py @@ -11,7 +11,7 @@ class PrintJobUploadBlockedMessage(Message): """Message shown when uploading a print job to a cluster is blocked because another upload is already in progress.""" def __init__(self) -> None: - super(PrintJobUploadBlockedMessage, self).__init__( + super().__init__( text = I18N_CATALOG.i18nc("@info:status", "Please wait until the current job has been sent."), title = I18N_CATALOG.i18nc("@info:title", "Print error"), lifetime = 10, diff --git a/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadErrorMessage.py b/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadErrorMessage.py index ea9c1012a3..4b30013b9c 100644 --- a/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadErrorMessage.py +++ b/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadErrorMessage.py @@ -11,7 +11,7 @@ class PrintJobUploadErrorMessage(Message): """Message shown when uploading a print job to a cluster failed.""" def __init__(self, message: str = None) -> None: - super(PrintJobUploadErrorMessage, self).__init__( + super().__init__( text = message or I18N_CATALOG.i18nc("@info:text", "Could not upload the data to the printer."), title = I18N_CATALOG.i18nc("@info:title", "Network error"), message_type=Message.MessageType.ERROR diff --git a/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadProgressMessage.py b/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadProgressMessage.py index 03588f5c64..63fa037890 100644 --- a/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadProgressMessage.py +++ b/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadProgressMessage.py @@ -11,7 +11,7 @@ class PrintJobUploadProgressMessage(Message): """Class responsible for showing a progress message while a mesh is being uploaded to the cloud.""" def __init__(self): - super(PrintJobUploadProgressMessage, self).__init__( + super().__init__( title = I18N_CATALOG.i18nc("@info:status", "Sending Print Job"), text = I18N_CATALOG.i18nc("@info:status", "Uploading print job to printer."), progress = -1, diff --git a/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadQueueFullMessage.py b/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadQueueFullMessage.py index a296b9fd57..fc05ce3389 100644 --- a/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadQueueFullMessage.py +++ b/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadQueueFullMessage.py @@ -12,7 +12,7 @@ class PrintJobUploadQueueFullMessage(Message): """Message shown when uploading a print job to a cluster and the print queue is full.""" def __init__(self) -> None: - super(PrintJobUploadQueueFullMessage, self).__init__( + super().__init__( text = I18N_CATALOG.i18nc("@info:status", "Print job queue is full. The printer can't accept a new job."), title = I18N_CATALOG.i18nc("@info:title", "Queue Full"), lifetime = 10, diff --git a/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadSuccessMessage.py b/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadSuccessMessage.py index e82a031a39..7fa7340cff 100644 --- a/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadSuccessMessage.py +++ b/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadSuccessMessage.py @@ -11,7 +11,7 @@ class PrintJobUploadSuccessMessage(Message): """Message shown when uploading a print job to a cluster succeeded.""" def __init__(self) -> None: - super(PrintJobUploadSuccessMessage, self).__init__( + super().__init__( text = I18N_CATALOG.i18nc("@info:status", "Print job was successfully sent to the printer."), title = I18N_CATALOG.i18nc("@info:title", "Data Sent"), message_type = Message.MessageType.POSITIVE