remove tabs from the main windows

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-17 11:52:40 -07:00
parent 67813ac698
commit 640c99c256
1 changed files with 11 additions and 8 deletions

View File

@ -19,12 +19,20 @@ func showSplash() {
return true
})
tab := ui.NewTab()
splashWin.SetChild(tab)
splashWin.SetMargined(true)
// Make this window a 'tabbed' window
// tab := ui.NewTab()
hbox := ui.NewHorizontalBox()
hbox.SetPadded(true)
splashWin.SetChild(hbox)
splashWin.SetMargined(true)
// This displays the window
splashWin.Show()
// tab is ready so now display it
// tab.Append("WIT Splash", hbox)
// tab.SetMargined(0, true)
group := ui.NewGroup("Numbers")
group.SetMargined(true)
@ -42,7 +50,6 @@ func showSplash() {
})
vbox.Append(okButton, false)
if runtime.GOOS == "linux" {
vbox.Append(ui.NewLabel("OS: Linux"), false)
} else if runtime.GOOS == "windows" {
@ -51,8 +58,4 @@ func showSplash() {
vbox.Append(ui.NewLabel("OS: " + runtime.GOOS), false)
}
tab.Append("WIT Splash", hbox)
tab.SetMargined(0, true)
splashWin.Show()
}