【发布时间】:2019-10-02 06:35:03
【问题描述】:
刚开始接触 Kivy,面临一些对齐问题。
请看下图,我正在尝试在蓝色圆圈标记的位置调整红色圆圈标记的按钮天气图标。
这里是 *.kv 文件代码:
BoxLayout:
orientation:'horizontal'
BoxLayout:
orientation:'horizontal'
StackLayout:
orientation:'tb-rl'
canvas:
Color:
rgb: [.3, .320, .380]
Rectangle:
pos: self.pos
size: self.size
Button:
id:current_temperature
text: root.display_current_temperature()
font_size:40
size_hint: [None, None]
size:[200,50]
Button:
id:current_location
text: root.display_location()
font_size:15
size_hint: [None, None]
size:[200,50]
Button:
id:test
text: 'weather icon'
size_hint: [None, None]
size:[100,100]
【问题讨论】:
标签: python kivy kivy-language