Fyne GoLang GUI Course ICON – Tutorial 12

Fyne GoLang GUI Course ICON – Tutorial 12

package main
// importing Fyne
import (
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/theme"
"fyne.io/fyne/v2/widget"
)
func main() {
// creating app
a := app.New()
// create window
w := a.NewWindow("Icon : tutorial")
//resizing windows
w.Resize(fyne.NewSize(400, 400))
// Creating Icon Widget
IconX := widget.NewIcon(theme.CancelIcon())
// setup content
w.SetContent(IconX)
// show windows
w.ShowAndRun()
}
Download Code

 

Tony BB
 

TonyBB is a Coach , marketer, hypnotist and a founder of RSKVF Production who specializes in providing simple, affordable, and easy to use solutions for Life.

Click Here to Leave a Comment Below 0 comments

Leave a Reply: