【发布时间】:2017-07-17 03:14:42
【问题描述】:
我已经在这里工作了好几个小时了,尝试了我在这里能找到的所有解决方案,并尝试了一些随机的东西...... 我正在尝试构建一个由顶部的 3 个按钮组成的布局,然后是一个可滚动的 GridLayout 或 BoxLayout。我只是不知道出了什么问题......我已经阅读了一个回复“绑定布局的大小以适应自身:”但我正在使用屏幕管理并且无法弄清楚如何通过我的代码设置来做到这一点
<HomeScreen>:
BoxLayout:
orientation: "vertical"
BoxLayout:
size_hint: 1,.1
orientation: "horizontal"
Button:
text:"1"
Button:
text:"2"
Button:
text:"3"
ScrollView:
GridLayout:
orientation: "vertical"
size_hint_y: None
row_default_height: 60
cols:1
Button:
Button:
Button:
Button:
Button:
Button:
Button:
Button:
Button:
Button:
Button:
Button:
Button:
Button:
Button:
Button:
【问题讨论】:
标签: python kivy kivy-language