Skip to content
Snippets Groups Projects
Commit 737ebc40 authored by Florent Gluck's avatar Florent Gluck
Browse files

removed pretty much empty project: nexus-gui

parent b51147e2
No related branches found
No related tags found
No related merge requests found
package main
import (
"log"
//"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/widget"
)
func main() {
myapp := app.New()
win := myapp.NewWindow("nexus-client")
vm1 := widget.NewLabel("Xubuntu 20.04")
vm1Status := widget.NewLabel("stopped")
vm2 := widget.NewLabel("Debian 11")
vm2Status := widget.NewLabel("stopped")
win.SetContent(
container.NewHBox(
container.NewVBox(
container.NewHBox(
vm1,
vm1Status,
widget.NewButton("Start", func() {
vm1Status.SetText("started...")
}),
widget.NewButton("Stop", func() {
vm1Status.SetText("stopped")
}),
),
container.NewHBox(
vm2,
vm2Status,
widget.NewButton("Start", func() {
vm2Status.SetText("started...")
}),
widget.NewButton("Stop", func() {
vm2Status.SetText("stopped")
}),
),
),
),
)
win.ShowAndRun()
}
func mainChecks() {
myApp := app.New()
myWindow := myApp.NewWindow("Choice Widgets")
check1 := widget.NewCheck("Opt1", func(value bool) {
log.Println("Opt1 set to", value)
})
check2 := widget.NewCheck("Opt2", func(value bool) {
log.Println("Opt2 set to", value)
})
myWindow.SetContent(container.NewVBox(check1, check2))
myWindow.ShowAndRun()
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment