summaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-12 21:47:39 -0400
committerPietro Gagliardi <[email protected]>2014-03-12 21:47:39 -0400
commit26c6b97ce1198c879ebc499661e1ba65239ede7d (patch)
tree548c817b01add07d0c0fa49bf7c1b87deec131ff /doc.go
parenteb48ed09c3621cd3ac94c1d9cdbe310cf0f44eaf (diff)
Removed ui.Event(); all event channels are initialized with their objects now.
Diffstat (limited to 'doc.go')
-rw-r--r--doc.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/doc.go b/doc.go
index d51b8f4..a0a1b01 100644
--- a/doc.go
+++ b/doc.go
@@ -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))