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

Commit 8e73594

Browse files
committed
some little code fixing
1 parent 093f4f2 commit 8e73594

File tree

2 files changed

+29
-60
lines changed

2 files changed

+29
-60
lines changed

.idea/workspace.xml

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

project/ArtiQule.py

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,6 @@
77
from PyQt5.QtWidgets import (QAction, QApplication, QFileDialog,
88
QMainWindow, QPushButton, )
99

10-
"""
11-
Hover on QPaint detection
12-
def paintEvent(self, event):
13-
option = QtGui.QStyleOptionButton()
14-
option.initFrom(self)
15-
painter = QtGui.QPainter(self)
16-
if option.state & QtGui.QStyle.State_MouseOver:
17-
# do hover stuff ...
18-
else:
19-
# do normal stuff ...
20-
"""
21-
22-
SoundEffects = {
23-
'pen break': r'Sounds/pen break.mp3',
24-
'pen write': r'Sounds/pen writing.wav',
25-
'fill bucket': r'Sounds/fill bucket.mp3',
26-
'empty bucket': r'Sounds/empty bucket.mp3',
27-
'solid hitting': r'Sounds/solidified hitting.m4a',
28-
'straggly brush': r'Sounds/straggly brushing.m4a'
29-
}
30-
3110

3211
class ColorBox(QMainWindow):
3312
""" This window holds all the color pallettes"""
@@ -419,7 +398,8 @@ def mouseMoveEvent(self, event):
419398

420399
# this here is to add more realism
421400
# to the point when its breaking
422-
if self.currentTool.duration <= 0.2:
401+
if self.currentTool.duration <= 0.2 and self.currentTool.toolName != \
402+
'A bucket' or 'Sunbathing Eraser':
423403
dots = QPen()
424404
broken_tools = QPen()
425405
if self.currentTool.toolName == "Pointy Pen":

0 commit comments

Comments
 (0)