Questions tagged [kivy]

1

votes
1

answer
157

Views

Kivy packaging for android

I want to package kivy application via buildozer. I use instructions from here. Oracle Virtual box (version 5. 2. 4) is installed, but I cann't find file Buildozer VM.ovf (name from instructions). Where can I find this file or which parameters must I use to setting virtual machine?
jasan
1

votes
0

answer
145

Views

Python/Kivy : How to pass TextBox value in .kv file from one class to another class

Can anyone tell me? I have two file test.py and test.kv. I have a textBox which id : state . How to pass state.text value in root.get_value(state.text) and get value in function of def get_value test.py from kivy.uix.screenmanager import Screen from kivy.app import App from kivy.lang import Builder...
Martin
1

votes
1

answer
80

Views

Kivy: Making a persistent notification with buttons

I'd like to make an Android app, and I prefer to not have to step out of my comfort zone which is Python. I heard that the Kivy package can make Android apps, but I heard that it likely doesn't have the full Android UI functionality that you could access using Java. My desired app should have a pers...
Ram Rachum
1

votes
0

answer
100

Views

Kivy ScrollView, unable to scroll , scroll bar not shown

ScrollView: size_hint_x:None size_hint_y:None background_color:[.2,.4,.4,1] pos_hint:{'center_x':.97,'center_y':.55} size_hint:.45,.5 GridLayout: id:selecteditem height: self.minimum_height bar_width:3 cols:1 padding:1 spacing:3 size_hint:.45, .5 this is the .kv file code. for i in range(100): btn =...
Anderson neo
1

votes
0

answer
275

Views

Kivy error message

I am working on an application in Kivy that allows users to receive text messages from the application when they enter their phone number information. I tested the app and It worked for about a week. I created a twillio account and received a phone number. The application user is prompted to enter t...
Simeon Ikudabo
1

votes
1

answer
213

Views

Python-for-android error: local variable 'targets' referenced before assignment

I keep getting an error when trying to create an apk with python-for-android. When I run this: p4a apk --debug --sdk_dir=sdk --ndk_dir=ndk --ndk_version=r16b --private mnt/c/main.py --package=helloworld --name 'Hello World' --version 0.1 --bootstrap=sdl2 --requirements=python2,kivy --arch=armeabi-v...
Sachit Gali
1

votes
1

answer
426

Views

Kivy: Buildozer.spec file is not completed

I prepared kivy buildozer for using. For installation I used instructions here, process for python 3. After step 3, buildozer.spec file wasn't completed and checked lines (step 4) had next content: requirements = kivy #android.ndk_path = Message about installation after buildozer android debug depl...
jasan
1

votes
0

answer
130

Views

Best way to package kivy application for ubuntu

There is no info in the official doc of kivy for packaging kivy application for ubuntu. https://kivy.org/docs/gettingstarted/packaging.html I have tried this also but it didn't work for me. http://bitstream.io/packaging-and-distributing-a-kivy-application-on-linux.html I am having dependencies of p...
Prabhakar Jha
1

votes
0

answer
183

Views

python/kivy : set dynamically value on on_touch_down event in TextInput from treeView

I have two files test1.py and test1.kv. There are a +Add more button.When click on +Add More button then row add dynamic. I added treeView on TextInput.But now i am confused that how to put selected treeView value(self.text) in current TextBox because every TextBox added dynamic so i don't know how...
Martin
1

votes
1

answer
272

Views

Error during using buildozer for kivy packing

For packining I used instrumentalities which are recommended in kivy manual I use for kivy packing virtual machine from https://kivy.org/#download (Oracle virtual box and settings of virtual machine) For buildozer installating I used process https://github.com/kivy/buildozer, for Python 3. I manua...
jasan
1

votes
1

answer
28

Views

Kivy- different attributes for for loop generated buttons

I have been trying to make multiple buttons according to the number of files in a directory. And when each button pressed it should start to launch a different video file. I have for samples so far i can create 4 buttons but when i pressed it always triggers the last buttons on_release function. I h...
Berk
1

votes
1

answer
464

Views

Creating widget with button in .kv file

I have a widget with one button. SimpleWidget.py from kivy.properties import ObjectProperty from kivy.uix.widget import Widget class SimpleWidget(Widget): bt = ObjectProperty() .kv : bt: button Button: id: button How do I create this widget inside .kv with different handlers for buttons? I tried to...
frosthamster
1

votes
1

answer
131

Views

How to get nested Kivy widgets to interact between each other?

I'm playing around with the examples provided in the Kivy tutorial. I was able to create nested widgets, but can't seem to get the buttons to modify objects in the other parts of the screen. In this example, I've tried to modify the Kivy example script to turn it into a simple login window with a n...
AyeSee
1

votes
1

answer
461

Views

build-tools folder not found /home/pi/.buildozer/android/platform/android-sdk-20/build-tools

I am making an android app with python - kivy. and using raspbian - raspberry pi 3. trying to use buildozer android debug deploy run but got the error: # Check that aidl can be executed # build-tools folder not found /home/pi/.buildozer/android/platform/android-sdk-20/build-tools # Search for Aidl...
Shahar Zuler
1

votes
0

answer
199

Views

I cannot install kivy for python 3.6 on os x in a Virtualenv

When I try to install (using homebrew) kivy for python 3.6 in a virtualenv: (vs36) MacBook-Pro-de-Juan:Environments juancarlos1$ python Python 3.6.1 (v3.6.1:69c0db5050, Mar 21 2017, 01:21:04) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type 'help', 'copyright', 'credits' or 'license' for...
JCAguilar
1

votes
0

answer
230

Views

Kivy - Get value from Toggle Buttons Group

I'm starting with Kivy. I want to make a toogle button group and get a value depending which button is pressed. My code is working, but I wonder if there is another way to do this. Here is my code: The 'building.kv' file: #:kivy 1.10 : size_hint: None, None size: 48,48 markup: True group: 'category'...
Eduardo
1

votes
0

answer
132

Views

Kivy image widget does not update image

I am currently reading a file using imread in the opencv package for python. I do some editing, and then I save the file with a different name, which for convenience say 'test.png'. I then load this file and display it using the Kivy image widget. All of this works. However, when I try to edit anoth...
TonyJ
1

votes
0

answer
136

Views

Kivy change background of buttons created with .kv file

I am new to kivy but I am trying to do the following: I am creating my layout in some .kv files. Once, a button is pressed, a method in my python code will be executed. This function should then in return change the Color of some buttons. background_color: global_background_color_C bold: True font_s...
Finn Eggers
1

votes
0

answer
338

Views

Installing kivy on Mac OS

I am trying to install ivy on Mac OS, I have come across an error which there is no documentation to fix the issue. When I try to pip install kivy the following occurs. Thanks for any help in advance xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at:...
1

votes
1

answer
128

Views

Resizing Window in Kivy Android App on softkeyboard with SDL2

I am currently working on an Android App using the Python and the Kivy Framework. The majority of the screen's real estate is used by a text_input widget. I would like to resize this text_input when the android soft keyboard pops ups so that the text_input ends right at the top of the keyboard. To...
Just-Joe
1

votes
0

answer
225

Views

Kivy: How set up item Drop-Down

I need to set up dynamically list in Drop-Down. For setting I want to use constructor of class DiscDropDown, which is decendant of class DropDown. (It means, that want to set up value for variable li_disc in class DiscDropDown). Instance of this class is not part of python code, because I use Builde...
jasan
1

votes
1

answer
226

Views

Kivy PyInstaller very large package size in Linux

I am trying to package a code almost 2kb size for linux using PyIntaller, package size is almost 250mb, according to code there is nothing special is imported. How to reduce this size? i am new to packaging all other codes i tried have same package size, here are my imports. from kivy.app import App...
1

votes
1

answer
315

Views

How to connect my kivy app to an online mySQL database powering a website?

I'm relatively new to kivy in python, but I would like to build a mobile app for an existing website, to do this I will have to fetch data from this website's database, including users login credentials and many more. Please I'm stuck I don't even know where to go from here.
Ojo Joseph Oluwaseun
1

votes
0

answer
99

Views

Kivy buildozer debug error :No module named kivy

I'm trying to build a simple kivy app with buildozer and python2 , but for some reason inside this build no module 'kivy'. And Some logs from buildozer : [INFO]: STDOUT: Using distutils Environ change use_sdl2 -> True Cython check avoided. Traceback (most recent call last): File 'setup.py'...
Wade.ZeaK
1

votes
0

answer
65

Views

Why does the rotated button widget's position doesn't rotate?

I have two button widgets. The Button1 was rotated and the Button2 wasn't. I'm trying to test if the two button widgets will collide. Here is my code: from kivy.app import App from kivy.uix.button import Button from kivy.uix.widget import Widget from kivy.core.window import Window from kivy.graphics...
King of Juice
1

votes
0

answer
21

Views

File content into scrollable widget Kivy

I am stuck trying to find a way to load contents from a file into a scrollable widget. I can get the content into a label (code below) But i want to make it scrollable. I am storing the contents of the file into a variable and loading the variable into label. The code below works for me, but the con...
M Doza
1

votes
1

answer
1.2k

Views

buildozer(kivy,python) failed in copying generated apk to the home dir on docker virtual machine

I tried to run buildozer in docker virtual machine to generate andorid app package(.apk). After tried and filed sometimes, his Dockerfile(https://github.com/jedie/kivy-buildozer-docker) was determined to use to make my environment for my purpose. However, in almost finished building, the error occur...
user2058374
1

votes
1

answer
179

Views

After attempted compile, Python/Kivy application won't launch

I have created a program that I'm attempting to compile, but after the compiling has finished and I attempt to launch the application from the .exe inside the /dist/ directory, it creates a command prompt window, opens the application window for a brief moment, then closes. I have followed the Kivy...
Tylor Mansur
1

votes
0

answer
122

Views

kivy error when adding the navigationbar in matplotlib : It already has a parent

Dears, I want to display some matplotlib graphs and their matplotlib toolbars in a Kivy frame. When the line g.graf1.add_widget(n.actionbar) is commented, the matplotlib graph is displayed as expected. When uncommented, I got the error kivy.uix.widget.WidgetException: Cannot add , it already has a...
Jerome
1

votes
0

answer
119

Views

Specifying FFMPEG in the requirements section of 'buildozer.spec' causing [libavformat/network.o] Error 1

My question relates to how to mitigate an ffmpeg requirement listed in a buildozer.spec that is causing compile errors using buildozer. GOAL: Using buildozer to ensure FFMPEG can be embedded within a small Kivy app so i can utilise youtube_dl functionality on my android phone. THE ISSUE: Specifying...
GJ78
1

votes
0

answer
148

Views

Python : How add a datepicker in .kv file

Can anyone tell me how to add a date picker or kivy calendar on date TextBox? I have two file test.py and test.kv file. test.py import kivy import sqlite3 as lite from kivy.uix.screenmanager import Screen from kivy.app import App from kivy.lang import Builder from kivy.core.window import Window from...
Veragi
1

votes
1

answer
332

Views

Getting error : No module named 'calendar_ui'. even though KivyCalendar has been installed using pip in windows 10

KivyCalendar has been installed using pip in windows 10. But returns an error:- No module named 'calendar_ui My code is: from kivy.app import App from KivyCalendar import CalendarWidget class MyApp(App): def build(self): return CalendarWidget() MyApp().run() Any help would be much appreciated. Thank...
Bhanu
1

votes
0

answer
134

Views

kivy BoxLayout is not displaying my image when using vertical orientation?

i am using kivy BoxLayout with two Buttons, one of the buttons is to display an image. the image displays fine when using the horizontal orientation, but when I use the vertical orientation it will not display my image. windows 10, python 3.6.4, kivy 1.10.0 .py file: from kivy.app import App from ki...
supreme
1

votes
1

answer
273

Views

Kivy Buildozer vm ant build failing

I am trying to build the Hello World Kivy app on the Buildozer vm. Everything runs fine until Ant tries to compile the files. I have attached the full error log and buildozer.spec [email protected]:~/Documents/TestKivy/src$ buildozer android_new debug # Check configuration tokens # Ensure build layout # C...
mcmahonS9
1

votes
1

answer
109

Views

Disabling a widget using BooleanProperty() is not working

I'm trying to disable a Kivy button. To do so, I've created a BooleanProperty and I've set the disabled button property as that BooleanProperty. When I launch, the button is created properly with the value I've assigned it (False). However, when I update the BooleanProperty, nothing happens to the b...
Alex
1

votes
0

answer
163

Views

Buildozer failed while compiling into APK

Here is the app: #!/usr/bin/env python2 # -*- coding: utf-8 -*- ''' Created on Sat Feb 3 23:11:38 2018 @author: djaber ''' from kivy.app import App from kivy.uix.scatter import Scatter #from kivy.uix.button import Button from kivy.uix.label import Label from kivy.uix.floatlayout import FloatLayout...
Djaber Berrian
1

votes
0

answer
264

Views

python 3.6.3 kivy error when runing the code

I just installed Kivy on ubuntu 17.10 with python3 version 3.6.3, when I tried to check if kivy works fine by running this code: import kivy from kivy.app import App from kivy.uix.button import Button class TestApp(App): def build(self): # return a Button() as a root widget return Button(text='hello...
Blal swass
1

votes
0

answer
58

Views

Buildozer adding my packages

I developed an app in python3.5.2 gui work by using kivy and it's working fine in pc but not in android I have my package (name=PassStorage) consist 3 mudules (name=accounts.py,data.py,keyandnick.py) that are connected to each other by compositions and in main.py i am importing these mudules from Pa...
user378625
1

votes
2

answer
284

Views

AttributeError: 'NoneType' object has no attribute 'text' kivy

I'm trying to extract the values from the text box present in the ABC.kvfile. I found a similar question at this url. And I tried applying the same solution, but the error keeps popping up. I have no idea where the root of the problem lies. Can somebody be kind enough to shed some light on the probl...
user8344989
1

votes
0

answer
285

Views

Touch event does not work in Kivy on the Waveshare HDMI screen(Raspberry Pi)

I have attached the HDMI touchscreen from waveshare - https://www.waveshare.com/7inch-HDMI-LCD-C.htm The touch event is working well on the Raspian Stretch, but does not work in the Kivy application. Here is the output: [email protected]:~ $ python3 kivy/examples/demo/showcase/main.py [INFO ] [Logge...
rpi_guru

View additional questions