kivy

Kivy error while trying to change the screen

谁都会走 提交于 2020-02-06 07:44:08
问题 I didn't want to use the .kv language. So my problem occurs when trying to run a function when I press a button. I found these question which had the same problem so I adopted the code, for the on_press method, from them: kivy python passing parameters to fuction with button click Python, Kivy, “AssertionError: None is not callable” Error on function call by button The Error File "kivy\_event.pyx", line 703, in kivy._event.EventDispatcher.dispatch File "kivy\_event.pyx", line 1214, in kivy.

Kivy error while trying to change the screen

六月ゝ 毕业季﹏ 提交于 2020-02-06 07:42:48
问题 I didn't want to use the .kv language. So my problem occurs when trying to run a function when I press a button. I found these question which had the same problem so I adopted the code, for the on_press method, from them: kivy python passing parameters to fuction with button click Python, Kivy, “AssertionError: None is not callable” Error on function call by button The Error File "kivy\_event.pyx", line 703, in kivy._event.EventDispatcher.dispatch File "kivy\_event.pyx", line 1214, in kivy.

How to deal with Kivy installing error in Python?

血红的双手。 提交于 2020-02-05 08:27:43
问题 I have installed every necessary code in Python from Kivy, but the last one I need which one is python -m pip install kivy gets me an error like this: ERROR: Dependency for context.pyx not resolved: config.pxi ERROR: Dependency for compiler.pyx not resolved: config.pxi ERROR: Dependency for context_instructions.pyx not resolved: config.pxi ERROR: Dependency for fbo.pyx not resolved: config.pxi ERROR: Dependency for gl_instructions.pyx not resolved: config.pxi ERROR: Dependency for

Kivy Attribute Error - object has no attribute - Trying to connect widgets in kv language

≡放荡痞女 提交于 2020-02-05 03:46:12
问题 I seem to be having nonstop problems with trying to connect widgets in Kivy. I've read this useful guide but my situation isn't directly covered. I have 2 different "choosers" side by side like this: Each chooser will be its own class, held by the KeySigChooserContainer. I want to size the buttons based on the size of the KeySigChooserContainer, so that the buttons will have consistent sizes. This is accomplished with ChooserButton: ... width: root.parent.width * (3/32) but I don't like using

When building an apk for my samsung using buildozer an error occurs

巧了我就是萌 提交于 2020-02-05 02:38:27
问题 I don't know if the fault is in my python code or with buildozer so just ask if you need my python code! :). When I run buildozer android debug deploy run , buildozer ran for about 10 minutes and worked perfectly. It then shows the list of device attached and my device. After that the following error code occurs: adb: failed to install /home/casper/Desktop/myapp/bin/SNapp__armeabi-v7a-0.1-armeabi-v7a-debug.apk: Performing Streamed Install # Command failed: /home/casper/.buildozer/android

When building an apk for my samsung using buildozer an error occurs

萝らか妹 提交于 2020-02-05 02:37:38
问题 I don't know if the fault is in my python code or with buildozer so just ask if you need my python code! :). When I run buildozer android debug deploy run , buildozer ran for about 10 minutes and worked perfectly. It then shows the list of device attached and my device. After that the following error code occurs: adb: failed to install /home/casper/Desktop/myapp/bin/SNapp__armeabi-v7a-0.1-armeabi-v7a-debug.apk: Performing Streamed Install # Command failed: /home/casper/.buildozer/android

How to hide/remove the default minimize/maximize buttons on window developed with Kivy?

删除回忆录丶 提交于 2020-02-04 05:01:08
问题 How I can remove or hide the default minimize or maximize button of a window created with kivy. 回答1: I'm not aware of a simple way to do this - it's not exposed in the kivy window api, and may not even be exposed in pygame (which is likely the backend you're using on desktop). Maybe you can look up the right way to do it on each system you target, e.g. I think you can hint it to X11, but I don't know if this is really plausible or nice. We're developing a new sdl2 backend, which is more

How to get a widget position inside it's layout in Kivy?

拟墨画扇 提交于 2020-02-02 13:36:26
问题 I have a GridLayout and I added some Image widgets on it after adding of images I want to draw a rectangle in each image by using their canvas but I couldn't because I don't know the exact Image widgets positions on GridLayout. In last line of my Python code : Rectangle(pos = (child.x - 2.4, child.y + 467), size = (70, 70)) How to draw this rectangle in child(My method is not good^), Also Why my GridLayout not coming in center after setting it's pos_hint = {"center_x" : .5} ? 回答1: If I

Kivy and Matplotlib trying to update plot on button callback

蹲街弑〆低调 提交于 2020-01-31 19:35:07
问题 I can generate a 2D surface plot very nicely with Kivy and Matplotlib. I am trying to update the Z values on a button click. How may this be accomplished? I noticed that I can issue a plt.clf() which will clear the plot but doing the plt.gcf() to display the current plot doesn't work. Any suggestions would be really appreciated. import matplotlib matplotlib.use('module://kivy.garden.matplotlib.backend_kivy') from matplotlib.figure import Figure from numpy import arange, sin, pi from kivy.app

Python Kivy ListView: How to delete selected ListItemButton?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-30 12:27:38
问题 I'm trying to learn kivy by building a simple todo-list app like suggested by Dusty Phillips, author of the book "Creating apps in Kivy". This is the code so far: from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.properties import ObjectProperty from kivy.uix.listview import ListItemButton class TaskButton(ListItemButton): pass class TodoRoot(BoxLayout): task_input = ObjectProperty() task_list = ObjectProperty() def add_task(self): self.task_list.adapter.data.extend(