MDTextField:
hint_text: "Name"
icon_right: "arrow-down-drop-circle-outline"
icon_right_color: app.theme_cls.primary_color
I know i can use MDDropDownMenu to click on a button to choose from a list of options.
Is there a way to Click on that arrow icon at the right corner of the textfiled and
choose from a list of options?Lke it should expand and show some options to choose from and
the user can press on any option.
--
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/d2a4a1de-98cd-4c20-a8be-d0a9c8373524%40googlegroups.com.
Here is a color gradient… I found this code in a google search, and updated it to python 3, I’m embarrassed that I did not credit the original author.
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.graphics import Rectangle
from kivy.graphics.texture import Texture
class MyWidget(Widget):
def __init__(self, **args):
super(MyWidget, self).__init__(**args)
self.texture = Texture.create(size=(2, 1), colorfmt='rgb')
color1 = 0
color2 = 255
buf = ''.join(map(chr, [color1, color2])).encode('utf-8')
self.texture.blit_buffer(buf)
with self.canvas:
Rectangle(pos=self.pos, size=self.size, texture=self.texture)
class TestGApp(App):
def build(self):
return MyWidget(size=(200, 200))
if __name__ == '__main__':
TestGApp().run()
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAHG71Errj4M5vL4GYegR8UU3ti4YrWJVmKfhFrVtkrvMo7jHqQ%40mail.gmail.com.
Here is a link with what looks like more flexible code, and link to the original code from Tshirtman!
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/5e8e49d6.1c69fb81.5509e.86c3SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/5e8e4b66.1c69fb81.f61e6.2a41SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
Take a look at the source or the docs. They must have a button image they are associating with the editor.
Is MDRaisedButton derived from Button (That would be my expectation)…
Take a look at the kivy docs for button. You will find there are 4 properties images.
background_down, background_normal
background_disabled_down, background_disabled_normal.
https://kivy.org/doc/stable/api-kivy.uix.button.html?highlight=button#module-kivy.uix.button
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAHG71Eri71agD5Xokv2bAYUu-AVxbPnB8P5n5tFbnuOJrGqo6g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/5e8ea6d5.1c69fb81.30902.70ffSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
Look for a kv file that the MD package is using… I’d expect to find what you are looking for in the kv file.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAHG71EojnoP1DUphgmGDK3K7nYkRYWOyh4ygo1E1QCJ2PoNDfg%40mail.gmail.com.
I couldn’t help myself. I took a look at the kivymd code. The kv is in buttons.py. Enjoy.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/5e8eaaf4.1c69fb81.41fba.1cabSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/d2a4a1de-98cd-4c20-a8be-d0a9c8373524%40googlegroups.com.
--
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-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAHG71Errj4M5vL4GYegR8UU3ti4YrWJVmKfhFrVtkrvMo7jHqQ%40mail.gmail.com.
--
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-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/5e8e49d6.1c69fb81.5509e.86c3SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
--
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-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/5e8e4b66.1c69fb81.f61e6.2a41SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
--
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-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAHG71Eri71agD5Xokv2bAYUu-AVxbPnB8P5n5tFbnuOJrGqo6g%40mail.gmail.com.
--
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-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/5e8ea6d5.1c69fb81.30902.70ffSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
--
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-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAHG71EojnoP1DUphgmGDK3K7nYkRYWOyh4ygo1E1QCJ2PoNDfg%40mail.gmail.com.
--
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-...@googlegroups.com.
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/f5b88435-a616-4a40-a88e-79e83f433c1f%40googlegroups.com.