diff options
| author | Jeff Carr <[email protected]> | 2021-10-25 06:59:04 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-25 06:59:04 -0500 |
| commit | 29109c434c64c49898f76cba0865a16ce7b42af8 (patch) | |
| tree | 9aa09539db8b033f669b2dfde908b246be4bf186 | |
| parent | c8e32a0980e984deb04dc9688f422b9108783cda (diff) | |
MISC: minor cleanup
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | gui-example/main.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gui-example/main.go b/gui-example/main.go index d391ed4..722253a 100644 --- a/gui-example/main.go +++ b/gui-example/main.go @@ -8,17 +8,19 @@ import ( "git.wit.org/wit/gui" ) +// This initializes the first window +// +// Then starts a goroutine to demonstrate how to +// inject things into the GUI func main() { log.Println("Starting my Control Panel") - // This initializes the first window go gui.Main(initGUI) - // This starts a goroutine to demonstrate how to - // inject things into the GUI watchGUI() } +// This initializes the first window func initGUI() { gui.Config.Title = "WIT GUI Window Demo" gui.Config.Width = 640 @@ -31,7 +33,6 @@ func initGUI() { // This demonstrates how to properly interact with the GUI // You can not involke the GUI from external goroutines in most cases. - func watchGUI() { var i = 1 for { |
