fyne.go 781 B

12345678910111213141516171819202122232425262728
  1. // Package fyne describes the objects and components available to any Fyne app.
  2. // These can all be created, manipulated and tested without rendering (for speed).
  3. // Your main package should use the app package to create an application with
  4. // a default driver that will render your UI.
  5. //
  6. // A simple application may look like this:
  7. //
  8. // package main
  9. //
  10. // import "fyne.io/fyne/v2/app"
  11. // import "fyne.io/fyne/v2/container"
  12. // import "fyne.io/fyne/v2/widget"
  13. //
  14. // func main() {
  15. // a := app.New()
  16. // w := a.NewWindow("Hello")
  17. //
  18. // hello := widget.NewLabel("Hello Fyne!")
  19. // w.SetContent(container.NewVBox(
  20. // hello,
  21. // widget.NewButton("Hi!", func() {
  22. // hello.SetText("Welcome :)")
  23. // }),
  24. // ))
  25. //
  26. // w.ShowAndRun()
  27. // }
  28. package fyne // import "fyne.io/fyne/v2"