working on create
This commit is contained in:
parent
03b03cb197
commit
a7e639cdb0
|
@ -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
|
||||||
|
}
|
Loading…
Reference in New Issue