以下简单布局在调整大小后不会垂直扩展,只会垂直扩展。我已经玩过hug_width
,hug_height
和合作伙伴没有成功。我也尝试使用约束hbox
我错过了什么?
from enaml.widgets.api import MPLCanvas, MainWindow, HGroup, VGroup, CheckBox
enamldef PumpProbeViewer(MainWindow):
HGroup:
align_widths = False
MPLCanvas: plot_wid:
figure = Figure()
VGroup: control:
CheckBox:
text = "Show current"
CheckBox:
text = "Show mean"
CheckBox:
text = "Show first detector"