diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-03 23:08:51 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-03 23:08:51 -0400 |
| commit | 427a0f3a74a1feed3cfbef8894719221e4f8f27b (patch) | |
| tree | d2f0d6ff8cd363f33a92b4973afcb04ceda7b077 /doc.go | |
| parent | 59870e80f005cbd8f883c24200f81bde2fd63a7e (diff) | |
Big change to Window: split Open()'s functionality into Create() and Open(); they no longer return errors.
Diffstat (limited to 'doc.go')
| -rw-r--r-- | doc.go | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -23,10 +23,7 @@ Here is a simple, complete program that asks the user for their name and greets ui.AppQuit = w.Closing // treat quitting the application like closing the main window nameField := ui.NewLineEdit("Enter Your Name Here") button := ui.NewButton("Click Here For a Greeting") - err := w.Open(ui.NewVerticalStack(nameField, button)) - if err != nil { - panic(err) - } + w.Open(ui.NewVerticalStack(nameField, button)) for { select { |
