more standard gui functions

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-06-02 12:38:46 -07:00
parent c555147ebc
commit 8057295409
3 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ func makeCloudInfoBox(gw *gui.GuiWindow) {
log.Println("makeCloudInfoBox() START gw =", gw)
// box := gui.AddMainTab(gw)
gw = gui.InitGuiWindow(gui.Data.Config, "Box23", nil, gw.UiWindow, gw.UiTab)
gw = gui.InitGuiWindow(gui.Data.Config, "Box23", gw)
box := gui.AddGenericBox(gw, "makeCloudInfoBox")
log.Println("makeCloudInfoBox() START GW IS NOW: gw =", gw)

View File

@ -70,7 +70,7 @@ func splashClick(b *gui.GuiButton) {
return
}
// if there is not an account, then go to 'make account'
gw = gui.InitGuiWindow(gui.Data.Config, "Box22", gw.MakeWindow, gw.UiWindow, gw.UiTab)
gw = gui.InitGuiWindow(config, "Box22", gw)
gw.UiTab.Delete(0)
log.Println("addSubdomainQuestionBox() START")

View File

@ -91,7 +91,7 @@ func createAddVmBox(b *gui.GuiButton) {
// gw.BoxMap["ADD VM" + name] = box
box := gui.CreateGenericBox(gw, b, name)
box := gui.AddGenericBox(gw, name)
// Add hostname entry box
hostname := gui.MakeEntryHbox(box, "Hostname:", "testhost", true, "Hostname")
@ -114,7 +114,7 @@ func createVmBox(gw *gui.GuiWindow, vm *pb.Event_VM) {
log.Println("CreateVmBox() vm.Name =", vm.Name)
log.Println("CreateVmBox() gw =", gw)
box := gui.CreateBox(gw, vm.Name)
box := gui.AddGenericBox(gw, vm.Name)
// Add hostname entry box
gui.MakeEntryVbox(box, "hostname:", vm.Hostname, true, "Hostname")