PrintJobUploadErrorMessage.py 630 B

123456789101112131415161718
  1. # Copyright (c) 2019 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. from UM import i18nCatalog
  4. from UM.Message import Message
  5. I18N_CATALOG = i18nCatalog("cura")
  6. class PrintJobUploadErrorMessage(Message):
  7. """Message shown when uploading a print job to a cluster failed."""
  8. def __init__(self, message: str = None) -> None:
  9. super().__init__(
  10. text = message or I18N_CATALOG.i18nc("@info:text", "Could not upload the data to the printer."),
  11. title = I18N_CATALOG.i18nc("@info:title", "Network error"),
  12. message_type=Message.MessageType.ERROR
  13. )