[英]changing the font_name of OneLineListItem MDList
I would like to change the font_name of OneLineListItem in the MDList in kivymd.我想在 kivymd 的 MDList 中更改 OneLineListItem 的 font_name。 The changes will happen after loading a screen.
加载屏幕后将发生更改。
from kivy.lang import Builder
from kivymd.app import MDApp
KV = '''
OneLineListItem:
text: "[font=JetBrainsMono-ExtraBold-Italic.ttf]One-line item with avatar[/font]"
'''
class MainApp(MDApp):
def build(self):
return Builder.load_string(KV)
MainApp().run()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.