package main
import "github.com/nsf/gothic"
const init_script = `
catch { destroy .clock errorswindow }
set w [ toplevel .clock ]
wm withdraw .
wm title $::w "clock"
tk appname "clock"
wm overrideredirect $::w 1
wm geometry $::w "+690+0"
set ::time 12:00
label $::w.digital -textvar ::time -font "Arial 28" -fg white -bg #000000
pack $::w.digital
bind . <Up> {exec wish &; exit}
`
func main() {
ir := gothic.NewInterpreter(init_script)
<-ir.Done
}git
//這是一段無框窗體的tcl/tk代碼,目前不知道如何綁定按鍵讓其正常退出github
//運行效果以下app