【发布时间】:2022-08-15 08:06:08
【问题描述】:
我不知道如何将工具栏移动到屏幕顶部,在我创建工具栏之前,它默认放置在屏幕顶部。我该如何解决这个问题? output image
KV = (\'\'\'
Screen:
MDToolbar:
title: \"WeatherApp\"
MDLabel:
text: \"Hello World\"
\'\'\')
class WeatherApp(MDApp):
Window.size = (350, 630)
def build(self):
self.title = \"WeatherApp\"
self.theme_cls.theme_style = \'Dark\'
return Builder.load_string(KV)
WeatherApp().run()