mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
20 lines
679 B
Python
20 lines
679 B
Python
# Copyright (c) 2020 Ultimaker B.V.
|
|
# Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
from UM import i18nCatalog
|
|
from UM.Message import Message
|
|
|
|
|
|
I18N_CATALOG = i18nCatalog("cura")
|
|
|
|
|
|
class PrintJobUploadPrinterInactiveMessage(Message):
|
|
"""Message shown when uploading a print job to a cluster and the printer is inactive."""
|
|
|
|
def __init__(self) -> None:
|
|
super().__init__(
|
|
text = I18N_CATALOG.i18nc("@info:status", "The printer is inactive and cannot accept a new print job."),
|
|
title = I18N_CATALOG.i18nc("@info:title", "Printer inactive"),
|
|
lifetime = 10,
|
|
message_type=Message.MessageType.ERROR
|
|
)
|