Skip to content
This repository was archived by the owner on Mar 31, 2020. It is now read-only.

Commit 619400a

Browse files
committed
Added Eraser Tool
1 parent 1eb81ba commit 619400a

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.idea/workspace.xml

Lines changed: 4 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

project/ArtiQule.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ def Setup(self):
213213
"CTRL+J", "Gosh, that is a hard tip"
214214
)
215215

216+
self.eraser = Tool("Eraser", 10, Qt.white,
217+
[0, 0, 0, 0], self, "", "Ctrl+F",
218+
"Erase Your Mistakes, Kid!")
219+
216220
self.show()
217221

218222
self.drawing = False
@@ -295,6 +299,7 @@ def mousePressEvent(self, event):
295299
painter.drawLine(0, 0, 1000, 500)
296300
print('called directly')
297301
self.lastPoint = event.pos()
302+
self.update()
298303

299304
def mouseMoveEvent(self, event):
300305
if (event.buttons() and Qt.LeftButton) and\

0 commit comments

Comments
 (0)