56 lines
1.1 KiB
Go
56 lines
1.1 KiB
Go
// 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
|
|
}
|