filechooser.g
来自「这是一个Linux下的集成开发环境」· G 代码 · 共 19 行
G
19 行
# 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 + =
减小字号Ctrl + -
显示快捷键?