Skip to content
Advertisement

Tag: kivy

Kivy – Error while trying to use my.kv file

I’ve just started learning kivy and I am unable to get a black window when I run this code, and this is an error: Kivy files require #:kivy !ex This is my code snippet: gui_python.py My my.kv file is: Answer I use Builder.load_string() and paste my .kv code in it and that’s work

Kivy MDDatePicker – TypeError: __init__() missing 1 required positional argument: ‘callback’

https://kivymd.readthedocs.io/en/latest/components/pickers/index.html#mddatepicker This code is coming from the official presentation page so it may be a Github issue to raise ? The widget is under testing. Therefore, we would be grateful if you would let us know about the bugs found. TypeError: __init__() missing 1 required positional argument: ‘callback’ Answer The MDDatePicker does not work with kivymd-0.104.1. You must install kivymd-0.104.2.dev0

Kivy: How to bind dropdown opening properly?

I am struggling with making DropDown opening bind properly to the releasing of the selection button. I tried using this: selection_button.bind(on_release=drpdn.open) The binding seems to work rather randomly when I create more than one DropDown (some DropDowns open others do not and I cannot see any logic in it). However it shown exactly like this in the example in Kivy

Kivy Popup Shows Same Buttons as Main Screen

I’m very new to Kivy (been using for about four hours…) and I’ve hit a wall with popups. I have a main screen which has four buttons in a float layout. On press down I want the ‘MOVE’ button to open a popup. Now I’ve got this working but the popup contains the same four buttons as my mainscreen. This

Why my rgb color in Kivymd looks different to real color?

I was changing active color of MDTextFieldRound in Kivymd. I set theme.cls.primary_palette to Teal, and I want to set active color to accent color or lighter color of Teal. So I searched on Google and found many posts about teal color’s accent color. And I want to set color to 102,178,178,1 (https://www.color-hex.com/color-palette/4666). But when I use this code and run:

Advertisement