diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-12 21:47:39 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-12 21:47:39 -0400 |
| commit | 26c6b97ce1198c879ebc499661e1ba65239ede7d (patch) | |
| tree | 548c817b01add07d0c0fa49bf7c1b87deec131ff /doc.go | |
| parent | eb48ed09c3621cd3ac94c1d9cdbe310cf0f44eaf (diff) | |
Removed ui.Event(); all event channels are initialized with their objects now.
Diffstat (limited to 'doc.go')
| -rw-r--r-- | doc.go | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -9,8 +9,6 @@ Building GUIs is as simple as creating a Window, populating it with Controls, an Once a Window is open, you cannot make layout changes. -At present, you must also hook Window.Closing with ui.Event() to monitor for attempts to close the Window. - Once your Window is open, you can begin to handle events. Handling events is simple: because all events are channels exposed as exported members of the Window and Control types, simply select on them. Here is a simple, complete program that asks the user for their name and greets them after clicking a button. @@ -22,7 +20,6 @@ Here is a simple, complete program that asks the user for their name and greets func myMain() { w := ui.NewWindow("Hello", 400, 100) - w.Closing = ui.Event() nameField := ui.NewLineEdit("Enter Your Name Here") button := ui.NewButton("Click Here For a Greeting") err := w.Open(ui.NewVerticalStack(nameField, button)) |
