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

Commit f584629

Browse files
committed
Merge remote-tracking branch 'origin/master'
# Conflicts: # .idea/workspace.xml
2 parents d3f4a91 + fa5371a commit f584629

File tree

2 files changed

+8
-77
lines changed

2 files changed

+8
-77
lines changed

.idea/workspace.xml

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

project/ArtiQule.py

Lines changed: 3 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,9 @@ 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 \
402+
and self.currentTool.toolName != \
403+
'A bucket' or 'Sunbathing Eraser':
423404
dots = QPen()
424405
broken_tools = QPen()
425406
if self.currentTool.toolName == "Pointy Pen":

0 commit comments

Comments
 (0)