【发布时间】:2014-07-21 16:06:11
【问题描述】:
我正在尝试在盒子布局中绘制不同的小部件。 但是,如果我尝试绘制一些扩展小部件的类,由我自己实现,BoxLayout 会在左下角绘制所有内容。 试图改变 size_hint 和根的大小没有给出任何结果。
BoxLayout:
orientation: 'horizontal'
Button:
text: 'a'
Label:
text: 'b'
Button:
text: 'c'
TextInput:
text: 'd'
作品
BoxLayout:
orientation: 'horizontal'
Widget:
Button:
text: 'a'
Widget:
Label:
text: 'b'
给出问题。
有什么想法吗?
【问题讨论】:
标签: android python kivy boxlayout