pens: qtPen tuple unpacking (py3/PEP3113)

http://legacy.python.org/dev/peps/pep-3113/
This commit is contained in:
Adrien Tétar 2014-09-25 22:15:23 +02:00
parent 8ed8e46659
commit 65be78bd59

View File

@ -16,13 +16,13 @@ class QtPen(BasePen):
self.path = path
def _moveTo(self, p):
self.path.moveTo(p)
self.path.moveTo(*p)
def _lineTo(self, p):
self.path.lineTo(p)
self.path.lineTo(*p)
def _curveToOne(self, p1, p2, p3):
self.path.cubicTo(p1, p2, p3)
self.path.cubicTo(*p1+p2+p3)
def _closePath(self):
self.path.closeSubpath()