working on create

This commit is contained in:
Jeff Carr 2025-03-22 09:39:52 -05:00
parent 03b03cb197
commit a7e639cdb0
1 changed files with 55 additions and 0 deletions

55
windowCreate.go Normal file
View File

@ -0,0 +1,55 @@
// Copyright 2017-2025 WIT.COM Inc. All rights reserved.
// Use of this source code is governed by the GPL 3.0
package main
// An app to submit patches for the 30 GO GUI repos
import (
"go.wit.com/lib/gadgets"
"go.wit.com/log"
)
func createWindow() *gadgets.GenericWindow {
createWindow := gadgets.NewGenericWindow("Create Droplet", "settings")
createWindow.Custom = func() {
log.Warn("create window close")
}
grid := createWindow.Group.RawGrid()
gadgets.NewBasicEntry(grid, "memory")
grid.NextRow()
grid.NewLabel("name")
grid.NewTextbox("something")
grid.NextRow()
grid.NewButton("Start", func() {
log.Info("make a box")
})
return createWindow
}
func editDropletWindow() *gadgets.GenericWindow {
editDropletWindow := gadgets.NewGenericWindow("Create Droplet", "settings")
editDropletWindow.Custom = func() {
log.Warn("create window close")
}
grid := editDropletWindow.Group.RawGrid()
gadgets.NewBasicEntry(grid, "memory")
grid.NextRow()
grid.NewLabel("name")
grid.NewTextbox("something")
grid.NextRow()
grid.NewButton("Start", func() {
log.Info("make a box")
})
return editDropletWindow
}