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.

2724 questions
54
votes
5 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
  • 645
  • 1
  • 5
  • 7
33
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?
Max Phillips
  • 6,991
  • 9
  • 44
  • 71
12
votes
2 answers

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
  • 2,747
  • 4
  • 21
  • 43
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
  • 2,142
  • 3
  • 20
  • 34
12
votes
2 answers

Hiding and showing a widget

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
  • 63,191
  • 45
  • 217
  • 228
12
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
  • 970
  • 1
  • 11
  • 23
10
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…
10
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
  • 6,132
  • 4
  • 26
  • 42
9
votes
2 answers

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…
Nirdesh Kumawat
  • 386
  • 2
  • 16
  • 56
9
votes
5 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
  • 119
  • 1
  • 1
  • 11
9
votes
3 answers

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
  • 379
  • 1
  • 5
  • 18
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…
Nirdesh Kumawat
  • 386
  • 2
  • 16
  • 56
7
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
  • 134
  • 1
  • 2
  • 9
7
votes
2 answers

Python kivy - how to reduce height of TextInput

I am using kivy to make a very simple gui for an application. Nothing complex, very simple layout. Nevertheless I am having a hard time with TextInputs...They always display with full height and I can't manage to make them adjust to a "reasonable"…
Bertone
  • 756
  • 2
  • 9
  • 23
7
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
  • 155
  • 2
  • 3
  • 6
1
2 3
99 100