mirror of https://github.com/kivy/kivy.git
Merge pull request #2090 from matham/var-list
Allow VariableListProperty to accept any list derivative
This commit is contained in:
commit
4e6ba24dc8
|
@ -1280,7 +1280,7 @@ cdef class VariableListProperty(Property):
|
||||||
return x
|
return x
|
||||||
|
|
||||||
tp = type(x)
|
tp = type(x)
|
||||||
if tp is list or tp is tuple:
|
if isinstance(x, (list, tuple)):
|
||||||
l = len(x)
|
l = len(x)
|
||||||
if l == 1:
|
if l == 1:
|
||||||
y = self._convert_numeric(obj, x[0])
|
y = self._convert_numeric(obj, x[0])
|
||||||
|
|
Loading…
Reference in New Issue