示例#1
0
文件: minimal.go 项目: rmoreira/go-ui
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()
	})
}
示例#2
0
文件: attrs.go 项目: rmoreira/go-ui
func main() {
	fmt.Println(ui.Version())
	ui.Main(func() {
		go main_ui()
		ui.Run()
		exit <- true
	})
}
示例#3
0
func ui_main() {
	w := ui.NewWidget()
	w.SetWindowTitle(ui.Version())
	w.SetSizev(300, 200)
	defer w.Close()
	w.Show()
	<-exit
}
示例#4
0
文件: test.go 项目: titoi2/DialogTest
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
}