kivy

No module named kivy.app

强颜欢笑 提交于 2020-05-31 07:21:25
问题 So I thought I'd toy around and try and learn Kivy, as it looks interesting. I have just started trying to get one of their examples working: from kivy.app import App from kivy.uix.widget import Widget class MyPaintWidget(Widget): pass class MyPaintApp(App): def build(self): return MyPaintWidget() if __name__ == '__main__': MyPaintApp().run() I get the following error: C:\Kivy-1.8.0-py2.7-win32>python paint.py Traceback (most recent call last): File "paint.py", line 1, in <module> from kivy

No module named kivy.app

依然范特西╮ 提交于 2020-05-31 07:21:09
问题 So I thought I'd toy around and try and learn Kivy, as it looks interesting. I have just started trying to get one of their examples working: from kivy.app import App from kivy.uix.widget import Widget class MyPaintWidget(Widget): pass class MyPaintApp(App): def build(self): return MyPaintWidget() if __name__ == '__main__': MyPaintApp().run() I get the following error: C:\Kivy-1.8.0-py2.7-win32>python paint.py Traceback (most recent call last): File "paint.py", line 1, in <module> from kivy

Is it possible to write Kivy apps for iOS in Python 3.6?

て烟熏妆下的殇ゞ 提交于 2020-05-29 10:37:08
问题 So I am working on a Python based app using Kivy, and wanted to deploy it on my iPhone to test it out. When I searched for how to do this, I found this site: https://kivy.org/docs/guide/packaging-ios.html which is on Kivy's official site. At the top, it says 'Note Currently, packages for iOS can only be generated with Python 2.7. Python 3.4+ support is on the way.' Is this info up to date?? If so, is there some way I can deploy the app onto my iPhone using Python 3.6, or will I have to

kivy dynamically add custom widget to layout via python

我的梦境 提交于 2020-05-27 06:40:49
问题 I was able to get my layout working with static kivy language but I need to be able to add items to my list via python. I've tried several things but can't seem to get anything working correctly. Here's what I have working statically. main.py #!/usr/bin/python import os import kivy kivy.require('1.8.0') from kivy.app import App from kivy.core.window import Window from kivy.logger import Logger from kivy.uix.boxlayout import BoxLayout from kivy.uix.button import Button class CustomButton

Kivy Apk Buildozer : ReferenceError: weakly-referenced object no longer exists

*爱你&永不变心* 提交于 2020-05-24 03:56:05
问题 Can anyone tell me why my app is crashing. It's very strange that when i run my app for the first time it doesn't crash. but the next time i run it it crashes. I get something like this. i am using KIVYMD, KIVY, SOCKET, KIVY MAPVIEW , SQLITE3. below is the error which i get through buildozer logcat. 04-07 21:49:46.650 4622 4659 I python : [WARNING] [Base ] Unknown <android> provider 04-07 21:49:46.656 4622 4659 I python : [INFO ] [Base ] Start application main loop 04-07 21:49:48.162 4622

No module named 'Kivy' even though I installed it

帅比萌擦擦* 提交于 2020-05-18 03:48:33
问题 I've installed Kivy and all the need files as far as I know, but I'm still getting this error message and I don't know why. from kivy.app import App from kivy.uix.gridlayout import GridLayout class Container(GridLayout): pass class MainApp(App): def build(self): self.title = 'Awesome app!!!' return Container() if __name__ == "__main__": app = MainApp() app.run() This is the error message I get: Traceback (most recent call last): File "C:\Users\Yassi\OneDrive\Afbeeldingen\Bureaublad\main.py",

No module named 'Kivy' even though I installed it

不问归期 提交于 2020-05-18 03:46:28
问题 I've installed Kivy and all the need files as far as I know, but I'm still getting this error message and I don't know why. from kivy.app import App from kivy.uix.gridlayout import GridLayout class Container(GridLayout): pass class MainApp(App): def build(self): self.title = 'Awesome app!!!' return Container() if __name__ == "__main__": app = MainApp() app.run() This is the error message I get: Traceback (most recent call last): File "C:\Users\Yassi\OneDrive\Afbeeldingen\Bureaublad\main.py",

ERROR: No matching distribution found for Cython

佐手、 提交于 2020-05-17 08:49:16
问题 I'm traying to build android app with buildozer and kivy on ubuntu bash on widows 10 but I'm getting an error like this ERROR: Could not find a version that satisfies the requirement Cython (from versions: none) ERROR: No matching distribution found for Cython I don't knew what's the problem and how I can fix it please help the full log [INFO]: -> directory context /mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/build [INFO]: -> running python3 -m venv venv [INFO]:

Kivy TextInput to be above Android keyboard, however rest of screen to stay where it is

巧了我就是萌 提交于 2020-05-15 19:15:05
问题 I am building a quiz game in Kivy, that has a TextInput option for users at the bottom of the screen. It's at the bottom because the clues for the answers are displayed at the top. The issue I am having is when I deploy my app to my phone, the Android on-screen keyboard pops up and blocks out nearly half my screen. I tried the softinput_mode in the Windows package, but this seems to push my entire screen up and so now, the top half of the screen is gone (and users can no longer see the clues)

Kivy TextInput to be above Android keyboard, however rest of screen to stay where it is

China☆狼群 提交于 2020-05-15 19:13:07
问题 I am building a quiz game in Kivy, that has a TextInput option for users at the bottom of the screen. It's at the bottom because the clues for the answers are displayed at the top. The issue I am having is when I deploy my app to my phone, the Android on-screen keyboard pops up and blocks out nearly half my screen. I tried the softinput_mode in the Windows package, but this seems to push my entire screen up and so now, the top half of the screen is gone (and users can no longer see the clues)