summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorColin Noga <Tempus@Spectrum-Song.local>2011-11-17 14:51:22 -0600
committerColin Noga <Tempus@Spectrum-Song.local>2011-11-17 14:51:22 -0600
commit2d7b674eec9adc106d3bf237aac84cc0f261006c (patch)
treece59805922312eab11869fd674e3884303dae8b2 /src
parentfbbcc2155643c791f6d455d0bac290761e809b7c (diff)
downloadkoopatlas-2d7b674eec9adc106d3bf237aac84cc0f261006c.tar.gz
koopatlas-2d7b674eec9adc106d3bf237aac84cc0f261006c.zip
Fixed that stupid syntax error
Diffstat (limited to '')
-rw-r--r--src/editorui.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/editorui.py b/src/editorui.py
index b7d691a..5dd68b5 100644
--- a/src/editorui.py
+++ b/src/editorui.py
@@ -519,7 +519,7 @@ class KPEditorPathSegment(QtGui.QGraphicsPathItem):
self.rotation = 0
-
+
def makeStraight(self, start, end):
self.path.moveTo(start)
@@ -527,12 +527,13 @@ class KPEditorPathSegment(QtGui.QGraphicsPathItem):
QtCore.QPointF(end.x(), end.y()-5.0),
QtCore.QPointF(end.x(), end.y()+5.0),
QtCore.QPointF(start.x(), start.y()+5.0),
- QtCore.QPointF(start.x(), start.y()-5.0)]
+ QtCore.QPointF(start.x(), start.y()-5.0)]))
- graduate = QtGui.QRadialGradiant(QtCore.QPointF((end.x()/2)-(start.x()/2), (end.y()/2)-(start.y()/2) + 16), (end.x()/2)-(start.x()/2),
- graduate.setColorA(QColor(200, 210, 240))
- graduate.setColorB(QColor(150, 160, 190))
+ center = QtCore.QPointF((end.x()/2)-(start.x()/2), (end.y()/2)-((start.y()/2) + 16))
+ graduate = QtGui.QRadialGradiant(center, float((end.x()/2)-(start.x()/2)))
+ graduate.setColorA(QtGui.QColor(200, 210, 240))
+ graduate.setColorB(QtGui.QColor(150, 160, 190))
self.brush = QtGui.QBrush(graduate)
@@ -554,9 +555,10 @@ class KPEditorPathSegment(QtGui.QGraphicsPathItem):
self.path.subtracted(r)
- graduate = QtGui.QRadialGradiant(QtCore.QPointF((end.x()/2)-(start.x()/2), (end.y()/2)-(start.y()/2) + 16), (end.x()/2)-(start.x()/2),
- graduate.setColorA(QColor(200, 210, 240))
- graduate.setColorB(QColor(150, 160, 190))
+ center = QtCore.QPointF((end.x()/2)-(start.x()/2), (end.y()/2)-((start.y()/2) + 16))
+ graduate = QtGui.QRadialGradiant(center, float((end.x()/2)-(start.x()/2)))
+ graduate.setColorA(QtGui.QColor(200, 210, 240))
+ graduate.setColorB(QtGui.QColor(150, 160, 190))
self.brush = QtGui.QBrush(graduate)