You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using python-for-android (master) downloaded 2/6/2019 (same with 2/2/2019)
Issue with kivy==master
This example crashes on Android load at main.py line 16
Log shows Window as NoneType object.
from kivy.app import App
from kivy.uix.label import Label
from kivy.graphics import Color, Rectangle
from kivy.core.window import Window
class Demo(App):
def set_background_color(self):
with self.label.canvas.before:
Color(0.5, 0.0, 0.5)
Rectangle(size=Window.size)
def _resize_handler(self,obj,size):
self.set_background_color()
def build(self):
foo = Window.size ##### <<<<< Line 16
Window.bind(size=self._resize_handler)
self.label = Label(text = 'Greetings Earthlings')
self.set_background_color()
return self.label
if __name__ == '__main__':
Demo().run()
buildozer.spec
Command:
1) Kivy==master produces crash:
p4a clean_all
p4a apk --requirements=python3,kivy==master
2) Kivy default produces no crash
p4a clean_all
p4a apk --requirements=python3,kivy
3) Kivy==master as a change to default (so no clean_all before) produces no crash
p4a apk --requirements=python3,kivy==master
02-06 13:01:54.057 26517 26548 I python : File "/mnt/c/users/bobf/documents/pm/tst2/main.py", line 16, in build
02-06 13:01:54.057 26517 26548 I python : AttributeError: 'NoneType' object has no attribute 'size'
02-06 13:01:54.057 26517 26548 I python : Python for android ended.
The text was updated successfully, but these errors were encountered:
Versions
Description
Using python-for-android (master) downloaded 2/6/2019 (same with 2/2/2019)
Issue with kivy==master
This example crashes on Android load at main.py line 16
Log shows Window as NoneType object.
buildozer.spec
Command:
.p4a file:
Logs
The text was updated successfully, but these errors were encountered: