Atk
Another Golang Tcl/Tk binding GUI ToolKit
Install / Use
/learn @visualfc/AtkREADME
atk
Another Golang Tcl/Tk binding GUI ToolKit
go get github.com/visualfc/atk
Go docs: https://pkg.go.dev/github.com/visualfc/atk/tk
Install Tcl/Tk
http://www.tcl-lang.org
-
MacOS X
https://www.activestate.com/activetcl/downloads
-
Windows
https://www.activestate.com/activetcl/downloads
https://github.com/visualfc/tcltk_mingw
-
Ubuntu
$ sudo apt install tk-dev
-
CentOS
$ sudo yum install tk-devel
Demo
https://github.com/visualfc/atk_demo
Sample
package main
import (
"github.com/visualfc/atk/tk"
)
type Window struct {
*tk.Window
}
func NewWindow() *Window {
mw := &Window{tk.RootWindow()}
lbl := tk.NewLabel(mw, "Hello ATK")
btn := tk.NewButton(mw, "Quit")
btn.OnCommand(func() {
tk.Quit()
})
tk.NewVPackLayout(mw).AddWidgets(lbl, tk.NewLayoutSpacer(mw, 0, true), btn)
mw.ResizeN(300, 200)
return mw
}
func main() {
tk.MainLoop(func() {
mw := NewWindow()
mw.SetTitle("ATK Sample")
mw.Center(nil)
mw.ShowNormal()
})
}
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
344.1kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
