diff options
| author | Jeff Carr <[email protected]> | 2024-02-05 12:15:30 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-05 12:15:30 -0600 |
| commit | 8fcf5f668b182bd382b489cd19cfdcd59628b279 (patch) | |
| tree | 3f42c12d195fd9f4159cec7371d8e91fd8a2be20 /window.go | |
| parent | 47c928aaf5f5093e7681fe7841cd6a8eb4119254 (diff) | |
minor changes for v0.20
Signed-off-by: Jeff Carr <[email protected]>
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 |
