summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-05 12:15:30 -0600
committerJeff Carr <[email protected]>2024-02-05 12:15:30 -0600
commit8fcf5f668b182bd382b489cd19cfdcd59628b279 (patch)
tree3f42c12d195fd9f4159cec7371d8e91fd8a2be20 /window.go
parent47c928aaf5f5093e7681fe7841cd6a8eb4119254 (diff)
minor changes for v0.20
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'window.go')
-rw-r--r--window.go14
1 files changed, 13 insertions, 1 deletions
diff --git a/window.go b/window.go
index de507a4..78fb188 100644
--- a/window.go
+++ b/window.go
@@ -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