Typing fixes, add some comments

This commit is contained in:
ChrisTerBeke 2019-08-05 19:58:41 +02:00
parent 0099e640c5
commit 28f00bea31
No known key found for this signature in database
GPG key ID: A49F1AB9D7E0C263
3 changed files with 6 additions and 1 deletions

View file

@ -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:

View file

@ -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"),

View file

@ -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: