From 427a0f3a74a1feed3cfbef8894719221e4f8f27b Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 3 Jun 2014 23:08:51 -0400 Subject: Big change to Window: split Open()'s functionality into Create() and Open(); they no longer return errors. --- doc.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'doc.go') diff --git a/doc.go b/doc.go index 7487d5e..0a2637a 100644 --- a/doc.go +++ b/doc.go @@ -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 { -- cgit v1.2.3