Skip to content

Tag: kivy

Interrupting Kivy Toggle Button State Change on Click

I’ve got a toggle button that I’m using to start and stop a process. When the process is being stopped, I have a popup box that comes up, asking the user to enter a password to confirm they want to end the process. Only once the correct password is provided do I want the state of the toggle button…

Kivy Python: confused with class and instance methods

I was trying kivy and while I was accessing class variables, I was forced to use ‘self’ for class variables or else it was producing error. This is the kivy code I was using. Below is the main.py code where I have confusion: This code works. Here I am using class variables and accessing them from …

Cant wrap my head around Classes and Kivy

I am trying to use kivy.clock object more specifically Clock.schedule_interval to take temperature readings every couple seconds. I create a method in my main screen class (MyTerrLayout(Screen)) called clockAction. now when I type in Clock.schedule_interval(clockAction, 2) I get: So I tired to do self.clockAc…