KivyMD MDDropdownMenu value does not set

51 views
Skip to first unread message

Hand Banana

unread,
Jul 14, 2021, 12:32:38 PM7/14/21
to Kivy users support
I am trying to utilize the drop down menu with MDTextField like the example in the docs and on selection of the menu item, it does not behave like the example. The selection does not actually set the text fields value. I also tried the example exactly as is and it also did not set the text fields. Attached is my code.

Thank you.


mdmenu2.PNG
mdmenu1.PNG

Elliot Garbus

unread,
Jul 14, 2021, 5:34:40 PM7/14/21
to kivy-...@googlegroups.com

Please share a minimal executable example. 

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/b26fbe6e-959a-449f-831d-ee42772244f8n%40googlegroups.com.

 

Hand Banana

unread,
Jul 15, 2021, 9:34:02 AM7/15/21
to Kivy users support
This example on the docs does not work properly.
example.PNG

Elliot Garbus

unread,
Jul 15, 2021, 10:28:09 AM7/15/21
to kivy-...@googlegroups.com

It works for me.  Make sure you don’t have a file test.kv in the same directory.

I’m using kivy version 2.0.0; and kivymd  1.0.0.dev

 

Try installing kivymd from: pip install https://github.com/kivymd/KivyMD/archive/master.zip

Hand Banana

unread,
Jul 15, 2021, 10:38:01 AM7/15/21
to Kivy users support
I also have the same versions of kivy and kivymd. I just tried to install from the zip which was successful but did not fix the behavior. 

Robert

unread,
Jul 15, 2021, 12:52:02 PM7/15/21
to Kivy users support
The current release KivyMD is 0.104.2 and the test is using master which is slightly newer
 
I just updated an app that includes KivyMD dropdown to this version and it works.
(the dropdown implementation has changed several times in the last year or so)
Message has been deleted

Hand Banana

unread,
Jul 15, 2021, 2:22:13 PM7/15/21
to Kivy users support
It did fix this issue but now im getting this in the console:

"[CRITICAL] [Clock       ] Warning, too much iteration done before the next frame. Check your code, or increase the Clock.max_iteration attribute"

Hand Banana

unread,
Jul 15, 2021, 3:54:08 PM7/15/21
to Kivy users support
I decided to take "menu.py" from version 0.104.2 and replace the "menu.py" in my version of kivymd (0.104.2.dev0) and both issues have been resolved. Not sure if that could be problematic but it works. Thanks again for the assistance. 
Reply all
Reply to author
Forward
0 new messages