diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-12 21:28:58 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-12 21:28:58 -0500 |
| commit | 8e2f3b136e041705098f9f8d11941c33f785258a (patch) | |
| tree | 312da7cb31bf0348d7517f4be98d3c22b5c04445 /main.go | |
| parent | 40dc20be0d7141ccc6263b88e005c16378daa8ce (diff) | |
Adjusted sysData.make() to make the new window class and fixed main(). Now to fix compiler errors...
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -5,8 +5,7 @@ func main() { w := NewWindow("Main Window", 320, 240) w.Closing = make(chan struct{}) b := NewButton("Click Me") - w.SetControl(b) - err := w.Open() + err := w.Open(b) if err != nil { panic(err) } @@ -22,6 +21,6 @@ mainloop: } } } - w.Close() + w.Hide() } |
