1
以下簡單佈局在調整大小後不會垂直展開,只能垂直展開。我已經玩過hug_width
,hug_height
和夥伴沒有成功。我也嘗試使用約束hbox
調整MainWindow大小,HGroup不會垂直擴展
我缺少什麼?
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"