From c634914ae01a88b17672a85901291773e5b65b27 Mon Sep 17 00:00:00 2001 From: feilong Date: Wed, 8 Dec 2021 18:30:05 +0800 Subject: [PATCH] add doodle+fix1 --- .../4.IO\344\270\216GUI/doodle.md" | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git "a/data/1.OpenCV\345\210\235\351\230\266/1.OpenCV\345\237\272\347\241\200/4.IO\344\270\216GUI/doodle.md" "b/data/1.OpenCV\345\210\235\351\230\266/1.OpenCV\345\237\272\347\241\200/4.IO\344\270\216GUI/doodle.md" index b8cb2de..1ad36ed 100644 --- "a/data/1.OpenCV\345\210\235\351\230\266/1.OpenCV\345\237\272\347\241\200/4.IO\344\270\216GUI/doodle.md" +++ "b/data/1.OpenCV\345\210\235\351\230\266/1.OpenCV\345\237\272\347\241\200/4.IO\344\270\216GUI/doodle.md" @@ -49,8 +49,7 @@ class Painter: # TODO(You): 请正确实现画板事件响应,完成功能 def clean(self): - cv.rectangle(self.img, (0, 0), - (self.height, self.width), (0, 0, 0), -1) + cv.rectangle(self.img, (0, 0), (self.height, self.width), (0, 0, 0), -1) def begin_draw_rectangle(self, pos1, pos2): if self.color is None: -- GitLab