Skip to content

touchtracer bug - dp migration? #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
r1chardj0n3s opened this issue Jan 17, 2013 · 4 comments
Closed

touchtracer bug - dp migration? #87

r1chardj0n3s opened this issue Jan 17, 2013 · 4 comments

Comments

@r1chardj0n3s
Copy link
Contributor

I just tried to run the touchtracer demo and got this error. In the .kv file the padding is specified as '10dp'. I'm not sure what the fix should be...

Traceback (most recent call last):
File "main.py", line 102, in
TouchtracerApp().run()
File "/Applications/Kivy.app/Contents/Resources/kivy/kivy/app.py", line 464, in run
root = self.build()
File "main.py", line 96, in build
return Touchtracer()
File "/Applications/Kivy.app/Contents/Resources/kivy/kivy/uix/floatlayout.py", line 50, in init
super(FloatLayout, self).init(**kwargs)
File "/Applications/Kivy.app/Contents/Resources/kivy/kivy/uix/layout.py", line 55, in init
super(Layout, self).init(**kwargs)
File "/Applications/Kivy.app/Contents/Resources/kivy/kivy/uix/widget.py", line 114, in init
Builder.apply(self)
File "/Applications/Kivy.app/Contents/Resources/kivy/kivy/lang.py", line 1168, in apply
self._apply_rule(widget, rule, rule)
File "/Applications/Kivy.app/Contents/Resources/kivy/kivy/lang.py", line 1282, in _apply_rule
setattr(widget_set, key, value)
File "properties.pyx", line 137, in kivy.properties.Property.set (kivy/properties.c:2153)
File "properties.pyx", line 155, in kivy.properties.Property.set (kivy/properties.c:2408)
File "properties.pyx", line 235, in kivy.properties.NumericProperty.check (kivy/properties.c:3145)
ValueError: BoxLayout.padding accept only int/float

@tshirtman
Copy link
Member

hm, kivy may need to be updated/recompiled, you could try to replace '10dp' with dp(10) alternatively.

@r1chardj0n3s
Copy link
Contributor Author

I'm running with the latest git version of kivy which was built when I submitted this bug report. I will try your suggestion and if it works I'll see about putting together a pull request with the fix.

@tshirtman
Copy link
Member

did you try to make force in the kivy dir?

@r1chardj0n3s
Copy link
Contributor Author

My apologies, I had an old pre-dp version of kivy in my path. Sorry for the noise!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants