tk_messageBox(3tk) | Tk Built-In Commands | tk_messageBox(3tk) |
tk_messageBox - 彈出一個訊息視窗並等待使用者響應。
tk_messageBox ?option value ...?
這個過程建立並顯示一個訊息視窗,它帶有一個使用者訊息,一個圖示和一組按鈕。用一個唯一的符號名字標識訊息視窗中的每個按鈕(參見 -type 選項)。在彈出訊息視窗之後,tk_messageBox 等待使用者選擇按鈕中的一個。接著返回選擇的按鈕的符號名字。
支援下列選項-值對:
set answer [tk_messageBox -message "Really quit?" -type yesno -icon question] switch -- $answer { yes exit no {tk_messageBox -message "I know you like this application!" -type ok} }
message box
寒蟬退士
2002/05/21
http://cmpp.linuxforum.net
本頁面中文版由中文
man 手冊頁計劃提供。
中文 man
手冊頁計劃:https://github.com/man-pages-zh/manpages-zh
4.2 | Tk |