class 5 fyne GoLang GUI checkbox

Have you ever used checkboxes in web or school exam or Microsoft office? Or while doing HTML & CSS practice.
Here we are going to create the same here.

[sourcecode lang=”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

// importing fyne

import (



func main() {
// New App
a := app.New()
// New Window and title
w := a.NewWindow("Here is check box tutorial title")
// Resizing window of App
w.Resize(fyne.NewSize(400, 400))

// check box widget
checkbox1 := widget.NewCheck("Male", func(b bool) {
if b == true {
} else {
fmt.Println("Not Male")


// set up content
// running and showing app



[easy_media_download url=”” 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: