// Create a PanelHolder with a 3 panels func panelHolder(name string, theme gxui.Theme) gxui.PanelHolder { label := func(text string) gxui.Label { label := theme.CreateLabel() label.SetText(text) return label } holder := theme.CreatePanelHolder() holder.AddPanel(label(name+" 0 content"), name+" 0 panel") holder.AddPanel(label(name+" 1 content"), name+" 1 panel") holder.AddPanel(label(name+" 2 content"), name+" 2 panel") return holder }