kivy-language

Pass variables from .py to .kv file

*爱你&永不变心* 提交于 2021-01-20 12:27:27
问题 I am trying to use variables from python file to .kv file so I searched similar questions and found out the way use Property and coded like this: # in python file class Test2App(App): abcd = StringProperty('test') def build(self): return presentation # in kv file <MyButton@Button>: text: "contents (%s)"%(app.abcd) background_color: (255, 255, 255,1)` and an error comes up. AttributeError: 'NoneType' object has no attribute 'bind' File "/usr/local/lib/python2.7/dist-packages/kivy/lang/builder

Pass variables from .py to .kv file

左心房为你撑大大i 提交于 2021-01-20 12:26:12
问题 I am trying to use variables from python file to .kv file so I searched similar questions and found out the way use Property and coded like this: # in python file class Test2App(App): abcd = StringProperty('test') def build(self): return presentation # in kv file <MyButton@Button>: text: "contents (%s)"%(app.abcd) background_color: (255, 255, 255,1)` and an error comes up. AttributeError: 'NoneType' object has no attribute 'bind' File "/usr/local/lib/python2.7/dist-packages/kivy/lang/builder

How can I get selected text in another textinput. Getting error “'ScreenManager' object has no attribute 'widget_1'”

本秂侑毒 提交于 2021-01-07 06:31:32
问题 I am trying to get the selected text from recycleview to the txt_input1 but it is throwing error. It was working in the separate .py file but then I transfered the code into my run1.py file and its not working the new code is start and end is enclosed in comments "#Start" and "end" run1.py file from kivy.lang import Builder from kivy.app import App from kivy.uix.widget import Widget from kivy.properties import ObjectProperty from Option import OptionApp import sys, time, threading from kivy

How can I search in recycleview

核能气质少年 提交于 2020-12-27 06:23:21
问题 How can I search in recycleview with updated review .I can also search now. But when I type 3 alphabets in txt_input it search for the same result. and gives the list which contains those 3 alphabets. But i want to make as a search engine. so if I type "TAT" it will show me TATA MOTORS PVT LTD,Tata Elxsi Limited,Tata Steel Limited,etc. But when I type "TATA MO" it doesnot update the recycleview with new search suggestions. How can I achieve that kind of updated result every time add alphabets

How can I search in recycleview

老子叫甜甜 提交于 2020-12-27 06:23:19
问题 How can I search in recycleview with updated review .I can also search now. But when I type 3 alphabets in txt_input it search for the same result. and gives the list which contains those 3 alphabets. But i want to make as a search engine. so if I type "TAT" it will show me TATA MOTORS PVT LTD,Tata Elxsi Limited,Tata Steel Limited,etc. But when I type "TATA MO" it doesnot update the recycleview with new search suggestions. How can I achieve that kind of updated result every time add alphabets

Kivy Multiple Column RecyclerView

不羁的心 提交于 2020-12-05 11:39:04
问题 i was just playing with Python and kivy , I've loaded my String data into a RecyclerView as per the kivy official documentation. but I've faced trouble on loading an object to multiple columns inside the list like a form data. for example i wanted to have name,family name and age to three columns with title headers row by row , I've also tried RecyclerGridLayout with 3 columns , but it can load just name into grids regardless of row by row requirement <RV>: viewclass: 'Label' RecycleBoxLayout

Kivy Multiple Column RecyclerView

眉间皱痕 提交于 2020-12-05 11:35:52
问题 i was just playing with Python and kivy , I've loaded my String data into a RecyclerView as per the kivy official documentation. but I've faced trouble on loading an object to multiple columns inside the list like a form data. for example i wanted to have name,family name and age to three columns with title headers row by row , I've also tried RecyclerGridLayout with 3 columns , but it can load just name into grids regardless of row by row requirement <RV>: viewclass: 'Label' RecycleBoxLayout

Kivy Multiple Column RecyclerView

半城伤御伤魂 提交于 2020-12-05 11:35:05
问题 i was just playing with Python and kivy , I've loaded my String data into a RecyclerView as per the kivy official documentation. but I've faced trouble on loading an object to multiple columns inside the list like a form data. for example i wanted to have name,family name and age to three columns with title headers row by row , I've also tried RecyclerGridLayout with 3 columns , but it can load just name into grids regardless of row by row requirement <RV>: viewclass: 'Label' RecycleBoxLayout

How to get syntax highlighting on Kivy, .kv, file in Pycharm on OSX? [duplicate]

青春壹個敷衍的年華 提交于 2020-11-30 09:15:17
问题 This question already has answers here : How to configure Python Kivy for PyCharm on Windows? (7 answers) Closed 4 years ago . What are the steps needed to get syntax highlighting on .kv files in PyCharm on OSX? 回答1: The import settings for PyCharm can be found here: https://github.com/Zen-CODE/kivybits/tree/master/IDE KV Lang File Type Support Download this file On Pycharm’s main menu, click "File"-> "Import" (or Import Settings) Select this file and PyCharm will present a dialog with

How to get syntax highlighting on Kivy, .kv, file in Pycharm on OSX? [duplicate]

偶尔善良 提交于 2020-11-30 09:06:50
问题 This question already has answers here : How to configure Python Kivy for PyCharm on Windows? (7 answers) Closed 4 years ago . What are the steps needed to get syntax highlighting on .kv files in PyCharm on OSX? 回答1: The import settings for PyCharm can be found here: https://github.com/Zen-CODE/kivybits/tree/master/IDE KV Lang File Type Support Download this file On Pycharm’s main menu, click "File"-> "Import" (or Import Settings) Select this file and PyCharm will present a dialog with