Most voted "python-kivy" questions
53 questions
Sort by count of
-
4
votes2
answers838
viewsBasic code error in Kivy(Python)
I made a very simple code using Kivy, but give this error that shows in the image below: The code is as follows:: import kivy kivy.require('1.0.6') from kivy.app import App from kivy.uix.button…
-
3
votes1
answer229
viewsWhat’s if __name__ == '__main__': if the kivy can run the application without this line of code?
In the kivy documentation shows that pro app working is required if __name__ == '__main__': MyApp().run() But I try to remove the if condition; and the app ran anyway; someone explains why, please!…
-
3
votes4
answers6351
viewsHow do I capture each key typed in python
I am trying to make a program that captures the keystrokes typed on the pc, so that later I can access them. I don’t know where to start. I don’t know if you use sqlite3 (database), in google I…
-
3
votes1
answer749
viewsError in kivy installation
I can’t install the kivy on my computer, I’ve never touched Pip before, I’m putting the commands on cmd and gives error. I am running the following commands: python -m pip install docutils pygments…
-
2
votes1
answer180
viewsIndentation error
I’m trying to create a TextInput in the Kivy and define its dimensions, only whenever it puts its dimensions of error: invalid indentation,must be a Multiple of 4 Spaces. I still don’t understand…
-
2
votes1
answer41
viewsKivy - Change keyboard cursor position (Caret) after formatting textinput with mask
In a Textinput where the user type the CPF, control the validation and formatting in an on_Text event. After typing the 11 digits and validating the CPF, I format with the mask, however, after…
-
1
votes1
answer143
viewsI cannot return assigned values to variables
I am layman programming myself and decided to start a program in python to use as a tool in a game well, the code so far is this: def tempo (temp): total=temp*quant dias=total//(24*60*60)…
-
1
votes3
answers648
viewsI can’t download "pygame" or "kivy" via the "Pip install..." command
When I try to download the pygame appears the following, remembering that my pc is windows 10 - 64bits. python 3.7.0b3 (64bits)
-
1
votes0
answers111
viewsKivy using Raspberry pi 3
I’m using HDMI output from Raspberry Pi 3. Using a code Python that opens a window Kivy, this window fills the whole screen and overlap everything else(open windows, pointer mouse...). Apparently…
-
1
votes0
answers549
viewsChange screen by python file in kivy
I need to change the screen inside the file .py, I can’t do it for .Kv because I have to use the ButtonBehavior and it does not work in .Kv. from kivy.app import App from kivy.uix.boxlayout import…
-
1
votes0
answers214
viewsHow to add and remove wigdets dynamically?
import kivy kivy.require('1.10.1') from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.button import Button class Tela-1…
python-kivyasked 6 years, 2 months ago Carlos 11 -
1
votes1
answer488
viewsBlack screen when running a program with Kivy
I’m not understanding why when I run the following code the screen appears only black. Someone can give me a help? from kivy.app import App from kivy.uix.label import Label from kivy.uix.button…
-
1
votes0
answers32
viewsTextinput - doubt - doubt?
I wonder how to capture the text of textinput. self.ids.grid.cols = 4 for i in range(12): self.ids.grid.add_widget(TextInput(id = str(i+1), text = 'Teste')) For example, I would like to be able to…
python-kivyasked 5 years, 6 months ago Fernando Foster 121 -
1
votes1
answer378
viewsHow to use Kivy Recycleview in the KV language and with Screenmanager?
I’m using Kivy for an app. I have a database in Google Firebase working well, I can save there quietly. I would like to return this data to my app, but before I have problems with it, I can’t list…
python-kivyasked 6 years, 2 months ago Giovane Machado 371 -
1
votes2
answers444
viewsVirtual Assistant
Good afternoon fellows, as you go? So I’m fairly new to this development environment and I programmed in python some time ago. I have a project idea where it involves creating a kind of virtual…
-
1
votes0
answers108
viewsCaptuar properties of a dynamically added Kivy boot
I have a problem, I have an app created in Python and Kivy that has a screen that as soon as it is accessed creates some buttons dynamically. I would like to know how to capture the text of the…
-
1
votes1
answer76
viewsHow do I use a virtual keyboard in a Kivy or Kivymd application?
I am developing an application in python with graphical interface made in Kivymd. My question is the following, when I click in some field textinput I want a virtual keyboard to appear so I can…
-
1
votes0
answers34
viewsHow to use two buttons in the kivy for the same function?
I can’t get the same function to do two different operations in the kivy: from kivy.app import App from kivy.uix.boxlayout import BoxLayout class Topografia(BoxLayout): def aa(self): a =…
-
1
votes0
answers113
viewsKivy Duplicating Widgets
Hello, I am trying to develop a goal program in Python and Kivy, but I have a problem, when I click on the "Add Category" button the "add_category" function is called and adds a label with the text…
-
1
votes0
answers73
viewskivy : The term 'kivy' is not recognized as cmdlet name, function, script file or operable program
When trying to run script from kivy.app import App from kivy.uix.gridlayout import GridLayout from kivy.uix.label import Label from kivy.uix.textinput import TextInput class TelaLogin(GridLayout):…
-
1
votes0
answers44
viewsBuildozer does not compile - Failure
I am trying to compile a Python code with Buildozer. The project has the icon.png, presplash.png, main.py and main.kv files. I tried even with Crystax, but continued with the same error... How do I…
-
0
votes1
answer592
viewsKivy event with keyboard
I’m creating a piano with kivy working all right, but only with the click of the mouse on the Button , I want to know how to type a key the Button run without I have to click with the mouse from…
-
0
votes1
answer159
viewserror running kivy designer, No module named 'designer'?
How to resolve this error in kivy designer ? [! [insert image description here][2][2]…
-
0
votes1
answer889
viewsPython - Access a function above outside a class
Hey there, guys! A question regarding Python. I have a structure more or less like this: class Tela(FloatLayout): def exemplo(self): print("teste") class botao(Button): ????? Explaining: It is a…
-
0
votes1
answer1150
viewsHow to configure Portuguese in kivy?
My App has two files, *.py and *.Kv, but I’m having problems with accents in my GUI. I’ve tried to resolve in the . py with file #encoding: -*- utf-8 -*- But the problem remains, please help me.…
-
0
votes1
answer544
viewsKivy does not run error in text editor
Hello I just installed kivy in windows following the step-by-step kivy.org site. When I try to run a test script, I get a message on the pycharm console that the execution has been aborted: "Unable…
-
0
votes1
answer798
viewskivy in python 3.6
I am using Python 3.6.2 and am learning the kivy. The script does not rotate because it lacks the sdl2. I already installed the pillow and the pillow-PIL, but I can’t install the sdl2. I tried the…
-
0
votes1
answer194
viewsLow text resolution in Python Kivy
I’m starting in Python and Kivy, but I’m not understanding why the generated objects are so low-resolution. In a simple screen of username and password, one can observe the serrated text, ie with…
-
0
votes0
answers1009
viewsAttributeerror: 'Nonetype' Object has no attribute
Hello, I’m doing some testing with the framework Kivy and this error is being presented to me: AttributeError: 'NoneType' object has no attribute 'text' Well, follow the code Python: class…
-
0
votes1
answer332
viewsPositioning of kivy widget
I’m getting it from the layout managers but I’m slowly advancing. I have this study code: <Tela@RelativeLayout>: canvas.before: Color: rgb: 0,1,.05 Rectangle: pos: [0.2*coord for coord in…
python-kivyasked 6 years, 4 months ago Marcelo Rocha 33 -
0
votes1
answer1333
viewsI need help limiting the amount of characters in python kivy
I’m with a small amount, I’m trying to limit the amount of characters that can be typed without text, for example, a DDD code, where it only takes 2 or 3 digits, limit to only a maximum of 3…
python-kivyasked 6 years, 1 month ago Couzer 17 -
0
votes1
answer224
viewsHow to save an xml string to a document?
I want to save my xml which is a str(return of an API) in a . xml file, but when I do this it does not fuciona anyone could help me? from xml.dom import minidom cont = minidom.parseString(xml)…
-
0
votes1
answer64
viewsredirecting to a website using a button (kivy)
Hello ! I’m making a simple application, but it needs a redirect to a specific site ! Example: With just one touch, the button redirects the user to Youtube ! I am making my desktop application,…
python-kivyasked 5 years, 8 months ago Felipe 1 -
0
votes2
answers1368
viewsIs it a good idea to use JSON as a database?
I’m doing a mobile app project. Using Python and Kivy. My project has three main classes to save in a database (it’s a ticket selling app): Tickets, Events and Users. Searching, I saw that JSON is…
-
0
votes1
answer92
viewsHow to pass variable between class functions?
I need to pass the variable price for the function whatever of Tela4. I am new to both programming and the language itself and I have serious problems with this solution despite imagining that it is…
-
0
votes1
answer126
viewskivy recycleview with line with multiple items
How to make a recycleview with multiple items in a row? The examples I studied using Recyclegridlayout the columns become independent and so does not look good. An example of how I wanted to do:…
-
0
votes1
answer69
viewsDoubt in the kivy documentation, Textinput
In kivy textinput documentation you have the following code snippet def on_enter(instance, value): print('User pressed enter in', instance) textinput = TextInput(text='Hello world', multiline=False)…
-
0
votes2
answers53
viewsHow to keep the window open in Python Kivy?
I am learning the Python Kivy library. The code is not making mistakes, but the window opens and closes immediately. How can I make the window stay open? import kivy from kivy.app import App from…
-
0
votes1
answer204
viewsUse of Class in Kivy
Good afternoon, I want to make a program that uses several combobox and in one window. But I can’t get both. When I run the program, only one of the combobox appears. Below I send the current code.…
-
0
votes1
answer388
viewsRemoving duplicate lines
I’m developing my TCC, My TCC, it searches emails in google collection, makes bulk sending etc, I’m having a problem, In this search for emails he collects repeated emails and invalid emails, then…
python python-3.x python-2.7 python-requests python-kivyasked 5 years, 7 months ago Allan Petersen 3 -
0
votes0
answers20
viewswhat is the purpose of __init__ and super() arguments in Python?
I’m programming an app with the kivy, and the instructor talked about these arguments, only he didn’t explain what exactly they do, someone can explain to me what they do??
-
0
votes1
answer180
viewsI have a question in the kivy + sql text_input
Hello, I am trying to make a registration page and I am doing some tests in this code, for example, I am trying to make when I insert a name in the user field and press enter save this data in SQL,…
-
0
votes1
answer491
viewsHow to add an image to Kivy Python
I need to add an image to my screen and was following what I was doing in all other widgets. My code: class MainApp(App): def build(self): layout1 = FloatLayout() button = Button(text='iniciar',…
-
0
votes1
answer183
viewsKivy Filechooser how to select a directory
I need to create an interface where the user can select a directory, my code: class MainScreen(FloatLayout): def __init__(self, **kwargs): super(MainScreen, self).__init__(**kwargs) b1 =…
-
0
votes1
answer274
viewsKivy: Screenmanager() to Clear Widgets before screen transition
I’m building an application with Python and Kivy. To toggle the screens use Kivy’s Screenmanager. Ex.: Button: text: 'Sair de Tela 2 e voltar para Tela 1' size_hint_y: None height: 100 on_press:…
-
0
votes2
answers143
viewsKivy: INVALID PROPERTY NAME
I created a program in Python and Kivy, but it only gives error! PYTHON PROGRAM: kivy.require("1.11.1") from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.button import…
-
0
votes1
answer503
viewsPython and Kivy: How to select and copy all text from a Text Input
Hello! I’m trying to learn Kivy... 1) I would like to select all text within a Text Input in Kivy. Which attribute should I study to change my code myself?; 2) After selecting all the text, the copy…
-
0
votes0
answers33
viewshow to send a form that the user has filled in to my email with python kivy?
My goal is that the form filled by the user send me an email with the fields filled, when the user click 'complete registration' My file.py class Cadastro(Screen): def pop(self): box =…
-
0
votes1
answer55
viewsHow to assign a function to a kivy button?
I am a beginner in python and I want that whenever a certain button is pressed, run a function. Here is the code: application py. import kivy kivy.require("1.8.0") from kivy.app import App class…
-
-1
votes0
answers267
viewscmd -> Pip -> "The system cannot run the specified program."
People how to solve this? windows 10-64bits and Python 3.6.5 (64-bit)…