From e66d67fed1f09c6e9466cbadb3cf5382da5d6522 Mon Sep 17 00:00:00 2001 From: hejulian Date: Sat, 31 Oct 2020 12:41:11 +0100 Subject: [PATCH] resize, remove image save --- python_draw.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python_draw.py b/python_draw.py index 6b38f30..b05b206 100644 --- a/python_draw.py +++ b/python_draw.py @@ -9,8 +9,8 @@ class Canvas(QtWidgets.QLabel): def __init__(self): super().__init__() - self.width = 320 - self.height = 320 + self.width = 300 + self.height = 300 pixmap = QtGui.QPixmap(self.width, self.height) # pixmap = pixmap.scaled(self.width*5, self.height*5) self.setPixmap(pixmap) @@ -26,7 +26,7 @@ class Canvas(QtWidgets.QLabel): empty = np.zeros((self.width, self.height)) self.pixmap().fill(Qt.GlobalColor.transparent) self.update() - self.report_pixels() + # self.report_pixels() def report_pixels(self): @@ -55,7 +55,7 @@ class Canvas(QtWidgets.QLabel): painter.setPen(p) painter.drawLine(self.last_x, self.last_y, e.x(), e.y()) - self.report_pixels() + # self.report_pixels() painter.end() self.update() @@ -103,7 +103,7 @@ class MainWindow(QtWidgets.QMainWindow): l.addLayout(palette) self.setCentralWidget(w) - self.showFullScreen() + # self.showFullScreen() def button_pressed(self): print("Button Pressed") -- GitLab