summaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-20 14:15:00 -0600
committerJeff Carr <[email protected]>2023-12-20 14:15:00 -0600
commit9f7da73c67e391e1797479f99a0578bde0fe2c0e (patch)
treee635091058c4fd6da949e6ccbd1291fa3c929cb3 /doc.go
parent85b9a036c289fe840e69e1852866f429b87cf63e (diff)
move to go.wit.com/guiv0.9.0
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'doc.go')
-rw-r--r--doc.go22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc.go b/doc.go
index 14cb2f3..c68b0ae 100644
--- a/doc.go
+++ b/doc.go
@@ -22,8 +22,10 @@ This worked on debian sid (mate-desktop) on 2023/12/03
I didn't record the dependances needed (gtk-dev)
export GO111MODULE="off"
- make
+ go get go.wit.com/gui
+When I am working on toolkit plugins, then I work
+directly from ~/go/src/go.wit.com/gui/
Hello World Example
@@ -32,24 +34,19 @@ Hello World Example
import (
"log"
- "git.wit.org/wit/gui"
+ "go.wit.com/gui"
)
- var window *gui.Node // This is the beginning of the binary tree of widgets
+ var myGui *gui.Node // This is the beginning of the binary tree of widgets
// go will sit here until the window exits
func main() {
- gui.Init()
- gui.Main(helloworld)
+ myGui = gui.New()
}
// This initializes the first window and 2 tabs
func helloworld() {
- gui.Config.Title = "Hello World golang wit/gui Window"
- gui.Config.Width = 640
- gui.Config.Height = 480
-
- window := gui.NewWindow()
+ window := myGui.NewWindow("hello world")
addTab(window, "A Simple Tab Demo")
addTab(window, "A Second Tab")
}
@@ -63,6 +60,9 @@ Hello World Example
})
}
+Hopefully this code example will remain syntactically
+consistant.
+
External Toolkits
* andlabs - https://github.com/andlabs/ui
@@ -89,7 +89,7 @@ external things which might be useful
* [MS Windows Application Library Kit](https://github.com/lxn/walk)
* [Federated git pull](https://github.com/forgefed/forgefed) Hopefully this will work for me with gitea
* [Github mirror](https://github.com/wit-go/gui) This repo on mirror. Hopefully I won't have to use this.
-* [WIT GO projects](https://go.wit.org/) Attempt to model go.uber.org
+* [WIT GO projects](https://go.wit.com/) Attempt to model go.uber.org
*/
package gui