AppImage file to App
This commit is contained in:
@@ -1,8 +1,22 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"cogentcore.org/core/core"
|
||||
"cogentcore.org/core/events"
|
||||
)
|
||||
|
||||
const (
|
||||
version = "3.0.0.0"
|
||||
version = "3.0.0-alpha1"
|
||||
)
|
||||
|
||||
func main() {
|
||||
b := core.NewBody("LinuxPA")
|
||||
core.NewButton(b).
|
||||
SetText("This is a test").
|
||||
OnClick(func(_ events.Event) {
|
||||
fmt.Println("This is a test")
|
||||
})
|
||||
b.RunMainWindow()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user