2014-02-11 17:57:03 -06:00
|
|
|
// 11 february 2014
|
|
|
|
package main
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
w := NewWindow("Main Window")
|
|
|
|
w.Closing = make(chan struct{})
|
2014-02-11 18:34:28 -06:00
|
|
|
err := w.Open()
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
2014-02-11 17:57:03 -06:00
|
|
|
<-w.Closing
|
|
|
|
w.Close()
|
|
|
|
}
|
|
|
|
|