kivy-language

Kivy app build successfully using buildozer but crashes when opened on android phone

Deadly 提交于 2020-07-22 06:25:29
问题 I'm building an app using kivy and it works perfectly on my Linux laptop. I build the app for android using buildozer and the log does not show any errors. When it was complete, the apk file is created in the bin folder. I then copy the apk file and paste it on my phone storage and then install the app. When I open the app, it shows the kivy logo and loading... but then it crashes! I tried the whole day to find a solution but I could not achieve that. I find this command while googling the

How to open a pdf within Python Kivy app?

南楼画角 提交于 2020-07-03 11:42:34
问题 I've searched about this but found nothing. Only opening images has documented. Maybe I can open a page as an image but I want full access on text like copy/paste and highlighting. Is there any way to open a pdf within a kivy app? 回答1: This is not supported by Kivy. PDF rendering and interaction is quite complicated, I don't know how difficult it would be to implement. 来源: https://stackoverflow.com/questions/61145384/how-to-open-a-pdf-within-python-kivy-app

How to open a pdf within Python Kivy app?

送分小仙女□ 提交于 2020-07-03 11:42:30
问题 I've searched about this but found nothing. Only opening images has documented. Maybe I can open a page as an image but I want full access on text like copy/paste and highlighting. Is there any way to open a pdf within a kivy app? 回答1: This is not supported by Kivy. PDF rendering and interaction is quite complicated, I don't know how difficult it would be to implement. 来源: https://stackoverflow.com/questions/61145384/how-to-open-a-pdf-within-python-kivy-app

Can you wrap lines in a kivy file?

橙三吉。 提交于 2020-06-28 08:08:06
问题 I have a couple of lines in my kv. file that are really long (80+ chars), and I was wondering if there was a way to wrap/continue them on the next line. For example, how do I go from this Line: points: self.pos[0] + 5, self.pos[1] + 2, self.pos[0] + self.width - 5, self.pos[1] + 2 to Line: points: self.pos[0] + 5, self.pos[1] + 2, self.pos[0] + self.width - 5, self.pos[1] + 2 or something similar. 回答1: Acording to https://kivy.org/docs/api-kivy.lang.html#valid-expressons, you can use line

kivy putting video inside a Canvas?

混江龙づ霸主 提交于 2020-06-17 15:23:45
问题 i want to put a video inside a canvas. i'm using images inside them just fine but when i use videos it triggers some errors Unknown <mp4> type, no loader found. i do not know where is the probleme. this is my code for the image : with self.canvas: self.bg = Rectangle(source='mahrez.jpg', pos=self.pos, size=self.size) but instead of the image i want to use a video 回答1: You can do what you want by using kivy.core.video and using that to set the texture of the Rectangle : from kivy.core.video