Golang Fyne: Difference between revisions

From Adam Colton
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 13: Line 13:
* split := widget.NewHSplitContainer(side, content)
* split := widget.NewHSplitContainer(side, content)
* split.Offset = 0.25
* split.Offset = 0.25


[[Category:Notes]]
[[Category:Notes]]

Latest revision as of 17:05, 15 December 2020

Live Code Notes App

Setup

  • a := app.New()

Widget

  • Returns fyne.CanvasObject
  • widget.NewToolBar(...)
  • fyne.NewContainerWithLayout(layout.NewBorderLayout(...),...)
  • split := widget.NewHSplitContainer(side, content)
  • split.Offset = 0.25