mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Typing fixes, add some comments
This commit is contained in:
parent
0099e640c5
commit
28f00bea31
3 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue