From a2f1778fb62da44dd49e8810ede5ae16601fae68 Mon Sep 17 00:00:00 2001 From: hejulian Date: Sat, 31 Oct 2020 12:42:17 +0100 Subject: [PATCH] resize --- python_draw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python_draw.py b/python_draw.py index b05b206..e9c083d 100644 --- a/python_draw.py +++ b/python_draw.py @@ -9,8 +9,8 @@ class Canvas(QtWidgets.QLabel): def __init__(self): super().__init__() - self.width = 300 - self.height = 300 + self.width = 200 + self.height = 200 pixmap = QtGui.QPixmap(self.width, self.height) # pixmap = pixmap.scaled(self.width*5, self.height*5) self.setPixmap(pixmap) -- GitLab