new-gui/toolkit/gocui/window.go

19 lines
280 B
Go

package main
import (
"log"
"git.wit.org/wit/gui/toolkit"
)
func NewWindow(w *toolkit.Widget) {
if (w == nil) {
log.Println("wit/gui plugin error. widget == nil")
return
}
if (w.Name == "") {
w.Name = "nil newWindow"
}
log.Println("gui.gocui.AddWindow", w.Name)
}