From 29109c434c64c49898f76cba0865a16ce7b42af8 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 25 Oct 2021 06:59:04 -0500 Subject: MISC: minor cleanup Signed-off-by: Jeff Carr --- gui-example/main.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gui-example') 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 { -- cgit v1.2.3