mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 22:09:04 +08:00
Typing fixes, add some comments
This commit is contained in:
parent
0099e640c5
commit
28f00bea31
@ -3,9 +3,11 @@
|
||||
from UM import i18nCatalog
|
||||
from UM.Message import Message
|
||||
|
||||
|
||||
I18N_CATALOG = i18nCatalog("cura")
|
||||
|
||||
|
||||
## Message shown when uploading a print job to a cluster is blocked because another upload is already in progress.
|
||||
class PrintJobUploadBlockedMessage(Message):
|
||||
|
||||
def __init__(self) -> None:
|
||||
|
@ -3,12 +3,14 @@
|
||||
from UM import i18nCatalog
|
||||
from UM.Message import Message
|
||||
|
||||
|
||||
I18N_CATALOG = i18nCatalog("cura")
|
||||
|
||||
|
||||
## Message shown when uploading a print job to a cluster failed.
|
||||
class PrintJobUploadErrorMessage(Message):
|
||||
|
||||
def __init__(self, message: str) -> None:
|
||||
def __init__(self, message: str = None) -> None:
|
||||
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"),
|
||||
|
@ -7,6 +7,7 @@ from UM.Message import Message
|
||||
I18N_CATALOG = i18nCatalog("cura")
|
||||
|
||||
|
||||
## Message shown when uploading a print job to a cluster succeeded.
|
||||
class PrintJobUploadSuccessMessage(Message):
|
||||
|
||||
def __init__(self) -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user