Hacker News new | ask | show | jobs
by tuyguntn 413 days 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()
    }
1 comments

You 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