func main() { fmt.Println(ui.Version()) ui.Main(func() { w := ui.NewWidget() w.SetWindowTitle(ui.Version()) w.SetSizev(300, 200) defer w.Close() w.Show() ui.Run() }) }
func main() { fmt.Println(ui.Version()) ui.Main(func() { go main_ui() ui.Run() exit <- true }) }
func ui_main() { w := ui.NewWidget() w.SetWindowTitle(ui.Version()) w.SetSizev(300, 200) defer w.Close() w.Show() <-exit }
func ui_main() { w := ui.NewWidget() w.SetWindowTitle(ui.Version()) w.SetSizev(300, 200) defer w.Close() d := alertdialog.NewAlertDialog() d.SetMessage("Hello\nWelcome Go lang world!!") d.Open() defer d.Close() w.Show() <-exit }