Looking at the source code, you can change the padding and the height. You cannot change the font_size.
--
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/CAGpYEywNJw8%3D%2BMLDU6Nr7WHDaeCCRo88_%3DrfAKoprTHvFeDXYQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/600d984e.1c69fb81.7a27e.e008SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
I created a version starting with the example in the docs and can adjust the padding.
from kivy.lang import Builder
from kivymd.app import MDApp
from kivymd.uix.menu import
MDDropdownMenu
KV = '''
Screen:
MDRaisedButton:
id: button
text: "PRESS ME"
pos_hint: {"center_x": .5, "center_y": .5}
on_release: app.menu.open()
'''
class Test(MDApp):
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.screen = Builder.load_string(KV)
menu_items = [{"text": i, "divider": None,"height": "60dp",
"top_pad": "10dp", "bot_pad": "10dp", "left_pad": "5dp", }
for i in ["Copy", "Cut", "Bold", "Highlight"]]
self.menu = MDDropdownMenu(caller=self.screen.ids.button,
items=menu_items, width_mult=4)
self.menu.bind(on_release=self.menu_callback)
def menu_callback(self, instance_menu, instance_menu_item):
instance_menu.dismiss()
def build(self):
return self.screen
Test().run()
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAGpYEyxGOneyyDh2AkQ%2BY%2BjENeeMBhNi-hwK8KS-QU5hfmkpsQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/600d9d92.1c69fb81.848a3.9e58SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
What can’t work. As I change the padding values, I see a change.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAGpYEyymSwuuXCuO-%2BCpvtxrhmix0Eu5Q3TWow6ppbpexdTawQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/600da3a1.1c69fb81.4f111.108cSMTPIN_ADDED_MISSING%40gmr-mx.google.com.