Fyne Golang GUI Tutorial 1 – Title

Want to change title in Fyne GUI ?

Its very Easy..

w:= a.NewWindow(“Here is my title“)

so You can change it easily in New Window.

 


package main

import (
"fmt"

"fyne.io/fyne/v2/app"
) // Importing Fyne in my project
func main() {

fmt.Println("Test Fyne...")
// Start with go mod init myapp to create a package
// we will create Our First Fyne Project

// Our first line of code will creating a new app

a := app.New()

// Now we will create a new window

w := a.NewWindow("I want to change my title") // You can you any title of your app

w.ShowAndRun() // Finally Running our App
}

[easy_media_download url="http://blogvali.com/wp-content/uploads/fyne-golang-downloads/main1.go" text="Download Code" color="red_darker"]

Fyne GoLang GUI Course

 

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: