Make PEP 8 friendly

This commit is contained in:
Meet Udeshi 2015-12-25 00:56:16 +05:30
parent 9719cb0aad
commit 171fd32d0a
2 changed files with 8 additions and 8 deletions

View File

@ -139,7 +139,9 @@ class LinePlayground(FloatLayout):
alpha_controlline = NumericProperty(1.0) alpha_controlline = NumericProperty(1.0)
alpha = NumericProperty(0.5) alpha = NumericProperty(0.5)
close = BooleanProperty(False) close = BooleanProperty(False)
points = ListProperty([(500, 500), 300, 300, 500, 300, [500, 400, 600, 400]]) points = ListProperty([(500, 500),
300, 300, 500, 300,
[500, 400, 600, 400]])
points2 = ListProperty([]) points2 = ListProperty([])
joint = OptionProperty('none', options=('round', 'miter', 'bevel', 'none')) joint = OptionProperty('none', options=('round', 'miter', 'bevel', 'none'))
cap = OptionProperty('none', options=('round', 'square', 'none')) cap = OptionProperty('none', options=('round', 'square', 'none'))

View File

@ -660,8 +660,6 @@ cdef class Line(VertexInstruction):
free(vertices) free(vertices)
free(indices) free(indices)
property points: property points:
'''Property for getting/settings points of the line '''Property for getting/settings points of the line
@ -672,16 +670,16 @@ cdef class Line(VertexInstruction):
''' '''
def __get__(self): def __get__(self):
return self._points return self._points
def __set__(self, points): def __set__(self, points):
tmp=[] tmp = []
for p in points: for p in points:
if isinstance(p,(list,tuple)): if isinstance(p, (list, tuple)):
tmp=tmp+list(p) tmp = tmp + list(p)
else: else:
tmp.append(p) tmp.append(p)
self._points=tmp self._points = tmp
self.flag_update() self.flag_update()
property dash_length: property dash_length:
'''Property for getting/setting the length of the dashes in the curve '''Property for getting/setting the length of the dashes in the curve