remove tabs from the main windows
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
67813ac698
commit
640c99c256
|
@ -19,12 +19,20 @@ func showSplash() {
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
|
|
||||||
tab := ui.NewTab()
|
// Make this window a 'tabbed' window
|
||||||
splashWin.SetChild(tab)
|
// tab := ui.NewTab()
|
||||||
splashWin.SetMargined(true)
|
|
||||||
|
|
||||||
hbox := ui.NewHorizontalBox()
|
hbox := ui.NewHorizontalBox()
|
||||||
hbox.SetPadded(true)
|
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 := ui.NewGroup("Numbers")
|
||||||
group.SetMargined(true)
|
group.SetMargined(true)
|
||||||
|
@ -42,7 +50,6 @@ func showSplash() {
|
||||||
})
|
})
|
||||||
vbox.Append(okButton, false)
|
vbox.Append(okButton, false)
|
||||||
|
|
||||||
|
|
||||||
if runtime.GOOS == "linux" {
|
if runtime.GOOS == "linux" {
|
||||||
vbox.Append(ui.NewLabel("OS: Linux"), false)
|
vbox.Append(ui.NewLabel("OS: Linux"), false)
|
||||||
} else if runtime.GOOS == "windows" {
|
} else if runtime.GOOS == "windows" {
|
||||||
|
@ -51,8 +58,4 @@ func showSplash() {
|
||||||
vbox.Append(ui.NewLabel("OS: " + runtime.GOOS), false)
|
vbox.Append(ui.NewLabel("OS: " + runtime.GOOS), false)
|
||||||
}
|
}
|
||||||
|
|
||||||
tab.Append("WIT Splash", hbox)
|
|
||||||
tab.SetMargined(0, true)
|
|
||||||
|
|
||||||
splashWin.Show()
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue