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.
[sourcecode language=”go” autolinks=”false” classname=”myclass” collapse=”false” firstline=”1″ gutter=”true” highlight=”1-3,6,9″ htmlscript=”false” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″ toolbar=”false” title=”Source Code main.go”]
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