kivy

Python/Kivy : Selection Row in RecycleView using `Up` and `Down` key

陌路散爱 提交于 2020-01-13 06:53:11
问题 I am using python-2.7 and kivy. When i run test.py and click on Test menu then screen shows like attached image. 1. How to highlight first row by default on screen load? When press up and down key of keyboard then it should be select row according up and down key . 2. When i click on any row then it opens in modify case.How to open selected row in modify case using ctrl+e instead of click? test.py import kivy kivy.require('1.9.0') from kivy.app import App from kivy.uix.boxlayout import

Microsoft Visual C++ 14.0 is required to install twisted where Visual studio 2017 is already installed

我只是一个虾纸丫 提交于 2020-01-11 11:06:48
问题 When i compiled the code in VS-Code gives error -> Microsoft Visual C++ 14.0 is required Installing twisted in (windows 10) 1: pip install python-twisted gives an error Could not find a version that satisfies the requirement python-twisted (from versions: ) No matching distribution found for python-twisted 2: pip/pip3 install twisted Failed building wheel for twisted Running setup.py clean for twisted Failed to build twisted Note: There are two python versions installed in my PC But python

Kivy 'NoneType' object has no attribute 'ids'

霸气de小男生 提交于 2020-01-11 06:03:40
问题 I am receiving the following error in my Kivy application but I am not sure why and how to fix it: File "main.py", line 16, in __init__ self.seq_text_box = self.parent.ids.seq_text_box AttributeError: 'NoneType' object has no attribute 'ids' Basically, all I'm trying to do is access the text box within the methods of the MenuBar class. I'm new to this so it's likely I'm misunderstanding something. .py file from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix

NSIS after PyInstaller Kivy app can't find database

冷暖自知 提交于 2020-01-07 09:21:12
问题 I successfully packaged my Kivy app for Windows using PyInstaller and my app.exe runs without any problems. (.spec: Kivy 1.9.1 Windows package .spec single exe) For easier distribution I want to package my file to a single standalone .exe. My .nsi file: SilentInstall silent Section InitPluginsDir Setoutpath KanjiOrigin File /r "dist\KanjiOrigin\*" ExecWait "dist\KanjiOrigin\KanjiOrigin.exe" Setoutpath $TEMP SectionEnd A .exe is build without error: http://pastebin.com/h91jzGgY However when

Kivy - Parsing structure to widget

 ̄綄美尐妖づ 提交于 2020-01-07 07:49:06
问题 I'm having issues with parsing a data structure to a widget in Kivy, which would then access the structure and be able to show a value on the screen be updated continuously via a clock interval (not sure of a better to do this yet). I have highlighted the issues in the (non-working) code below: main.py from kivy.app import App from test import TestWidget class TestApp(App): def build(self): testStructTable = {'randomVal1': 1, 'testVal': 2, 'randomVal2': 3} # Issue here parsing the table like

Kivy - Parsing structure to widget

自作多情 提交于 2020-01-07 07:49:03
问题 I'm having issues with parsing a data structure to a widget in Kivy, which would then access the structure and be able to show a value on the screen be updated continuously via a clock interval (not sure of a better to do this yet). I have highlighted the issues in the (non-working) code below: main.py from kivy.app import App from test import TestWidget class TestApp(App): def build(self): testStructTable = {'randomVal1': 1, 'testVal': 2, 'randomVal2': 3} # Issue here parsing the table like

What is the correct way to initialize a Kivy Screen?

瘦欲@ 提交于 2020-01-07 06:46:07
问题 I am using Kivy with a .kv file. This is what my Python code looks like: class WelconeScreen(Screen): def __init__(self, **kwargs): self.name='home' super(Screen,self).__init__(**kwargs) class QuestionScreen(Screen): def __init__(self, **kwargs): self.name='question' super(Screen,self).__init__(**kwargs) class RootScreen(ScreenManager): pass class TestApp(App): def build(self): return RootScreen() if __name__ == '__main__': appVar = TestApp() TestApp().run() And this is my .kv file:

Kivy + Numpy @ Android error

倾然丶 夕夏残阳落幕 提交于 2020-01-07 05:47:07
问题 When I try to include numpy on the requirements of buildozer I get this message on logcat: I/python (26117): ImportError: cannot import name scimath And the apps crashes. Is there a way to fix this? 回答1: Solved with updated recipe.sh on python-for-android for numpy. http://pastebin.com/fB3BtRCn Get the latest patches from: https://github.com/kivy/python-for-android/tree/master/pythonforandroid/recipes/numpy 来源: https://stackoverflow.com/questions/33398723/kivy-numpy-android-error

sphinx, kivy and autodoc: warning and issues to create documentation

纵饮孤独 提交于 2020-01-07 03:52:14
问题 I would like to create documentation of my code in Sphinx. I installed everything and made some simple trial that worked fine. (I run sphinx-quickstart, edit the conf.py to include modules' path, work with a tutorial to know how sphinx works etc. etc.) Yet, my code import many kivy libraries. And when I want to create the documentation on module that import kivy, it fails. For instance, if I have my main.py like this: #!/usr/bin/python # -*- coding: utf-8 -*- from kivy.app import App def test

trying to install kivy on my pc i get the following errors

穿精又带淫゛_ 提交于 2020-01-07 03:25:17
问题 tried installing kivy on my pc with python 3.6. using cmd and both pip and easy_install i got the error "Cython is missing, its required for compiling kivy !" then i tried installing cython and i got "Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools" and i have visual studio fully installed on my pc when i visited the link giving above, the file i downloaded asked me to first uninstall my visual