Questions tagged [kivy-language]

A language created and used in the Kivy framework to describe a widget structure of a project.

Kivy language (kv, kvlang) is a language created and used in the Kivy framework to describe a widget structure of a project.

The concept behind kv is to make maintaining mainly the design part of an application simple. Kv provides features that make building an application easy and readable in large projects:

With these features kv allows very fast prototyping and agile changes to User Interface. It also facilitates a good separation between the logic of an application and its UI, therefore provides possibilities to minimize code size and maximize readability.

For real-time debugging of the kv code you can use KivyCatalog.

2076 questions
31
votes
4 answers

Pyinstaller adding data files

I'm struggling with pyinstaller. Whenever I build this specific script with a kivy GUI and a .kv file, and run the .exe after the build, I get a fatal error: IOError: [Errno 2] No such file or directory: 'main.kv' I've tried adding the .kv file, as…
staos2
  • 415
  • 1
  • 4
  • 6
27
votes
1 answer

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

What are the steps needed to get syntax highlighting on .kv files in PyCharm on OSX?
Phil Andrews
  • 5,501
  • 6
  • 32
  • 61
12
votes
2 answers

Kivy RecycleView as an alternative to ListView? How does it work?

I should preface that I'm still a newbie to Kivy. I tried looking for similar questions, but they were either outdated or unclear. I was looking for something to display a list of elements among which a used could select one to interact with other…
theberzi
  • 879
  • 12
  • 17
11
votes
1 answer

A simple web page inside kivy app as a widget

I want to have a web view in my kivy application that is running on ubuntu 64bit. I looked on the web, went through kivy's documentation and searched for answers on StackOverflow but I couldn't find anything that can do my job. A simple web page…
Akash Tomar
  • 940
  • 1
  • 10
  • 21
10
votes
2 answers

Hiding and showing a widget in Kivy

I am working on a Kivy project, and I need to display a label when there is no elements in a list. Otherwise, I need to display a list view. These are the two scenarios I am describing: When no friends to show: When list contains friends: This is…
lmiguelvargasf
  • 40,464
  • 32
  • 169
  • 172
9
votes
3 answers

Can the Kivy language access inherited layouts and widgets?

Can the kivy language access inherited layouts and widgets? I want to create one basic BoxLayout that contains the styling and title Label for my widget. I want to be able to inherit from this widget and add additional widgets in different…
justengel
  • 5,296
  • 3
  • 20
  • 38
8
votes
2 answers

how to plus integer value in loop

I have two file demo.py and demo.kv.can someone help me? 1. +Add More add row dynamic.After fill value when i click on Total Value then it shows string like 151012.Don't show 12+10+15=37.I am using code for it test = '' for val in…
Martin
  • 176
  • 2
  • 9
  • 42
8
votes
1 answer

How to fetch data from database and show in table in kivy+python

list.py import kivy kivy.require('1.9.0') # replace with your current kivy version ! import sqlite3 as lite from kivy.uix.screenmanager import Screen from kivy.app import App from kivy.lang import Builder from kivy.uix.boxlayout import…
Martin
  • 176
  • 2
  • 9
  • 42
8
votes
4 answers

x11 - ImportError: No module named 'kivy.core.window.window_x11'

when i try to run any kivy program with python 3.5 in my kali linux os. Then i get the below error. program:- from kivy.app import App from kivy.lang import Builder from kivy.uix.relativelayout import RelativeLayout Builder.load_string(''' : …
Akash Tyagi
  • 99
  • 1
  • 1
  • 8
7
votes
1 answer

How to make circular progress bar in kivy?

I thought to make one simple circular progress bar using kivy and python. I searched online documentation and GitHub repertoires, but not found single proper example explaining the concept of circular progress bar . Like the image attached below. I…
7
votes
1 answer

Kivy: scroll to zoom

Is there a way to zoom into an image on a desktop kivy app (e.g. zoom with a mouse scroll-wheel)? It appears to be discussed here: https://github.com/kivy/kivy/issues/3563 but I do not see if there was a work around given. I began with a static…
mdoc-2011
  • 1,945
  • 3
  • 17
  • 36
7
votes
1 answer

Python - Kivy: AttributeError: 'super' object has no attribute '__getattr__' when trying to get self.ids

I wrote a code for a kind of android lock thing, whenever I try to get an specific ClickableImage using the id it raises the following error: AttributeError: 'super' object has no attribute '__getattr__' I've spent hours trying to look for a…
gramsch
  • 327
  • 2
  • 17
6
votes
6 answers

A Complete Code Example Of Kivy A Working Screen Manager Reference Written In KV Language

I've been trying to build my kv language skills from Accessing id/widget of different class from a kivy file (.kv) using Kivy's clock? by working with the information found in Kivy Screen manager reference in kv language. Unfortunately the latter…
Brad Fortner
  • 114
  • 1
  • 1
  • 7
6
votes
2 answers

Python / Kivy: conditional design in .kv file

Would an approach similar to the example below be possible in Kivy? The code posted obviously doesn't work, and again it's only an example: I will need different layouts to be drawn depending on a certain property. How would you suggest working…
nxet
  • 721
  • 1
  • 8
  • 21
6
votes
1 answer

How to use a kivy StringProperty?

I would like to implement a kivy application, which has two screens (managed by a screen manager). On the first screen (called LoginScreen) there are two TextInput fields and a button. On the second screen I have two labels, which I would like to…
Bence
  • 135
  • 1
  • 3
  • 6
1
2 3
99 100