⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 files.tk

📁 《Beginning linux programming》一书相应的源代码
💻 TK
字号:
#!/usr/bin/wish# tk_getOpenFile demo# tk_getSaveFile demolabel .o -text "File to open:"entry .oe -textvariable openset types {    {{Text Files}       {.txt}   }    {{TCL Scripts}      {.tcl}   }    {{C Source Files}   {.c}      TEXT}    {{GIF Files}        {.gif}        }    {{GIF Files}        {}        GIFF}    {{All Files}        *             }}button .ob -text "Open..." -command "set open \[tk_getOpenFile -filetypes \$types \]"label .s -text "File to save:"entry .se -textvariable savebutton .sb -text "Save..." -command "set save \[tk_getSaveFile\]"# Create a dismiss buttonbutton .b -text "Dismiss" -command "exit"# Manage the widgetsgrid .o -row 0 -column 0 -sticky e -padx 10grid .oe -row 0 -column 1 -padx 10grid .ob -row 0 -column 2 -padx 10grid .s -row 1 -column 0 -sticky e -padx 10grid .se -row 1 -column 1 -padx 10grid .sb -row 1 -column 2 -padx 10grid .b -row 2 -pady 10

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -