kivy

Python, Kivy, Buildozer: APK crashes with SymPy

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-10 15:44:02
问题 As the title says, I've made an .apk to run on my Android mobile. It runs perfectly on PC. As soon as I take out all SymPy commands, it runs on Android too. I've mentioned the "sympy" in the buildozer.spec file, and it's not giving any errors. But as soon, as the loading on my Android-screen is over, the App disappears. Does anyone know, if I have to do more, than mentioning the sympy in the .specs file? ADB-Logcat: "ImportError: No module named unittest" I don't know, what "unittest" ist,

Python, Kivy, Buildozer: APK crashes with SymPy

大城市里の小女人 提交于 2021-02-10 15:42:08
问题 As the title says, I've made an .apk to run on my Android mobile. It runs perfectly on PC. As soon as I take out all SymPy commands, it runs on Android too. I've mentioned the "sympy" in the buildozer.spec file, and it's not giving any errors. But as soon, as the loading on my Android-screen is over, the App disappears. Does anyone know, if I have to do more, than mentioning the sympy in the .specs file? ADB-Logcat: "ImportError: No module named unittest" I don't know, what "unittest" ist,

Using arabic_reshaper and bidi.algorithm in kivymd

狂风中的少年 提交于 2021-02-10 15:41:05
问题 I am going to make a application with kivymd, which contains Arabic and Persian texts. According to my searches, to do this, you should use arabic_reshaper and bidi.algorithm and also use a font that supports Persian and Arabic languages. As a result, I was able to write the code like this, and it supports both Persian and Arabic text well. import kivy.app import kivy.uix.label import arabic_reshaper import bidi.algorithm class TestApp(kivy.app.App): def build(self): bidi_text = bidi

Using arabic_reshaper and bidi.algorithm in kivymd

为君一笑 提交于 2021-02-10 15:40:14
问题 I am going to make a application with kivymd, which contains Arabic and Persian texts. According to my searches, to do this, you should use arabic_reshaper and bidi.algorithm and also use a font that supports Persian and Arabic languages. As a result, I was able to write the code like this, and it supports both Persian and Arabic text well. import kivy.app import kivy.uix.label import arabic_reshaper import bidi.algorithm class TestApp(kivy.app.App): def build(self): bidi_text = bidi

how to correctly implement the google API on a Kivy application compiling with buildozer?

怎甘沉沦 提交于 2021-02-10 14:44:33
问题 after having correctly compiled my application with bulldozer, by opening my application on my phone, it crashed sistematically. I have programed my app on my PC and it work just fin .So I use adb to see the error: 07-06 22:16:20.229 9704 9737 I python : Traceback (most recent call last): 07-06 22:16:20.229 9704 9737 I python : File "/home/loan/Desktop/one/.buildozer/android/app/main.py", line 7, in <module> 07-06 22:16:20.230 9704 9737 I python : File "/home/loan/Desktop/one/.buildozer

How to select kivy old value for the spinner

痞子三分冷 提交于 2021-02-10 14:27:49
问题 Kivy documentation states that "Touching the spinner displays a dropdown menu with all the other available values from which the user can select a new one." Is there any workaround to tell if it is an old value a user selected in order to perform the same action? I am really stuck with this, please help me out. 回答1: Rather than using the on_text or on_select , you can use the Buttons that make up the DropDown to trigger whatever method you want to run. That way, it doesn't matter whether the

is there a way to record videos in kivy?

别说谁变了你拦得住时间么 提交于 2021-02-10 14:10:42
问题 I am displaying the camera video in Kivy, but I can't find a way to record the video, I tried to use OpenCV Videowriter but because of the updating ( Clock.schedule_interval(self.update, 1.0/33.0)) it is constantly overwriting so the video that it saved is one image, does anybody have an alternative way. 回答1: Please look into the below code which may serve your purpose. The main code is taken from the link: https://www.codingforentrepreneurs.com/blog/how-to-record-video-in-opencv-python. I

is there a way to record videos in kivy?

杀马特。学长 韩版系。学妹 提交于 2021-02-10 14:07:33
问题 I am displaying the camera video in Kivy, but I can't find a way to record the video, I tried to use OpenCV Videowriter but because of the updating ( Clock.schedule_interval(self.update, 1.0/33.0)) it is constantly overwriting so the video that it saved is one image, does anybody have an alternative way. 回答1: Please look into the below code which may serve your purpose. The main code is taken from the link: https://www.codingforentrepreneurs.com/blog/how-to-record-video-in-opencv-python. I

Kivy How can i create time counter with progressbar?

我的未来我决定 提交于 2021-02-10 13:14:32
问题 I want to make time counter with progressbar.The bar should be filled as time progresses. I've progresed with the logic in the codes below, but the code starts before the program opens. The bar should be stuffed every second.At least that's what I think. ''' def update_time(self): while self.ids.pb.value < 30: time.sleep(1) self.ids.pb.value+=1 ''' Related .kv file. ''' <Question>: name:"questions" canvas.before: Rectangle: pos: self.pos size: self.size source: 'bg2.jpg' FloatLayout: Label:

Kivy How can i create time counter with progressbar?

▼魔方 西西 提交于 2021-02-10 13:14:22
问题 I want to make time counter with progressbar.The bar should be filled as time progresses. I've progresed with the logic in the codes below, but the code starts before the program opens. The bar should be stuffed every second.At least that's what I think. ''' def update_time(self): while self.ids.pb.value < 30: time.sleep(1) self.ids.pb.value+=1 ''' Related .kv file. ''' <Question>: name:"questions" canvas.before: Rectangle: pos: self.pos size: self.size source: 'bg2.jpg' FloatLayout: Label: