默认情况下,下面的代码将垂直堆叠排列每个 GroupBox 对象(一个在另一个下方)。
enamldef Main(Window):
attr model
Container:
constraints = [ hbox(items) ]
Container: items:
Looper:
iterable << model.l # model.l = some list of atom objects
GroupBox:
title << loop_item.name
CheckBox:
checked := loop_item.active
我怎样才能将它们放在一个弯针中,以便它们水平堆叠(从左到右)?
我在 enaml docs / API 中找不到任何相关信息。