diff --git a/python_draw.py b/python_draw.py index 6b38f306d042ec2b8011618a103466451e993004..b05b206bdb01dadbb6c3163519f05b7d8ba0ceb4 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")