📄 filechooser.g
字号:
# Creates a file chooser for the given directory, starting with the# given title. Returns the name of the file chosen, or an empty (0-length)# string if "cancel" was selected.func filechooser(directory, title) { local p := client("tkclient gbutton.tk filechooser.tk") local tcl := [ paste('filechooser .c', directory, ' "*"'), 'pack .c', paste('wm title . {', title, '}') ] local file := request p->TclN(tcl) send p->terminate() return file }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -