Accordion items – Fyne GUI Golang tutorial 40
Accordion items – – Fyne GUI Golang tutorial 40
package main // import fyne import ( "fyne.io/fyne/v2" "fyne.io/fyne/v2/app" "fyne.io/fyne/v2/widget" ) func main() { // New app a := app.New() // New title w := a.NewWindow("Accordian - fyne ") // resize windows size w.Resize(fyne.NewSize(400, 400)) // Let create items for accoridan // first argument is title, 2nd is description/details item1 := widget.NewAccordionItem("A", widget.NewLabel("A for Apple")) item2 := widget.NewAccordionItem("B", widget.NewLabel("B for Ball")) item3 := widget.NewAccordionItem("C", widget.NewLabel("C for Cat")) ac := widget.NewAccordion(item1, item2, item3) w.SetContent(ac) w.ShowAndRun() }[easy_media_download url=”http://blogvali.com/wp-content/uploads/fyne-golang-downloads/main40.go” text=”Download Code” color=”red_darker”]
Fyne Golang GUI Course