Skip to content
Advertisement

Tag: kivy

Prevent Kivy leaving debug messages

I have a simple a Kivy interface that also uses the terminal. Example code: The problem is that whenever I start the script I get this: I have found that this is Kivy’s automatic debugging messages. How do I prevent them (or at least hide so that I can use the terminal)? Answer As shown in the docs, you should

Can you obtain physical size of device in kivy?

Does anyone know how Kivy renders text in different fonts? I have labels with text at 16sp. On a tablets with screen sizes (1024, 552) and (2048, 1536) it works perfectly (width/height ratios 1.855 and 1.333 respectively) On the pc with screen size (1280, 720) (ratio 1.778) it also displays perfectly, but on a phone with this screen size the

Kivy – Bind Label Text To Variable (Python Only)

I have been trying to get my labels to auto-update themselves for quite a while now and I have read over a dozen StackOverflow questions but to no avail. I have an global object that contains an integer value that I want to be displayed with a label inside of one of my widget classes. The widget class looks like

Error When Trying to Run Simple Kivy Program (Windows)

When trying to run the following program on my computer: After I added what was suggested( The last two lines ), I get two syntax errors, the first telling me to delete the colon and the second telling me to remove the indent, and then this: According to the tutorial I’m following( http://inclem.net/2014/01/09/kivy-crash-course/1_making-a-simple-app/ ), the program should be able to

Advertisement