3 ms·
You forced me to stand up and write the code. Here is your cross-platform desktop app in 10 lines, pretty sure others can do better than me: package main
by tuyguntn 1y ago
You forced me to stand up and write the code. Here is your cross-platform desktop app in 10 lines, pretty sure others can do better than me:
package main
import (
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/widget"
)
func main() {
w := app.New().NewWindow("One Button App")
w.SetContent(widget.NewButton("Do Nothing", func() {}))
w.ShowAndRun()
}
- dingnuts 1y agoYou only need two Tcl statements, shown here on one line for the sake of this pissing contest: button .b -text "Do Nothing" -command {exit}; pack .b