Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'cura/PrintJobPreviewImageProvider.py')
-rw-r--r--cura/PrintJobPreviewImageProvider.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/cura/PrintJobPreviewImageProvider.py b/cura/PrintJobPreviewImageProvider.py
index 8b46c6db37..321164adeb 100644
--- a/cura/PrintJobPreviewImageProvider.py
+++ b/cura/PrintJobPreviewImageProvider.py
@@ -10,8 +10,14 @@ class PrintJobPreviewImageProvider(QQuickImageProvider):
def __init__(self):
super().__init__(QQuickImageProvider.Image)
- ## Request a new image.
def requestImage(self, id: str, size: QSize) -> Tuple[QImage, QSize]:
+ """Request a new image.
+
+ :param id: id of the requested image
+ :param size: is not used defaults to QSize(15, 15)
+ :return: an tuple containing the image and size
+ """
+
# The id will have an uuid and an increment separated by a slash. As we don't care about the value of the
# increment, we need to strip that first.
uuid = id[id.find("/") + 1:]