diff options
Diffstat (limited to 'window.go')
| -rw-r--r-- | window.go | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -5,7 +5,19 @@ import ( "go.wit.com/widget" ) -// This routine creates a blank window with a Title and size (W x H) +// Why have NewWindow() when there isn't just Window() +// That's how smalltalk did things in 1972. Keep it Simple. +// todo: remove 'New' from every function name +// will that work? Are there problems with that? +// Button() Grid() Box(), Label() +// 2024/01/04 Naw, having NewWindow is more readable +/* +func (parent *Node) Window(title string) *Node { + return parent.NewWindow(title) +} +*/ + +// This routine creates a blank window with a Title func (parent *Node) NewWindow(title string) *Node { var newNode *Node |
