1
默认情况下,下面的代码将布局每个GroupBox对象垂直堆叠(一个在另一个之下)。Enaml Looper水平布局
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中找不到关于此的任何信息。