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

📄 menubar

📁 linux 下的源代码分析阅读器 red hat公司新版
💻
字号:
#!/bin/sh# ----------------------------------------------------------------------#  DEMO: menubar in [incr Widgets]# ----------------------------------------------------------------------#\exec itkwish "$0" ${1+"$@"}package require Iwidgets 3.0iwidgets::menubar .mb -helpvariable helpVar -menubuttons {    menubutton file -text "File" -menu {        options -tearoff false        command new -label "New" \                -helpstr "Open new document" \                -command {puts "selected: New"}        command close -label "Close" \                -helpstr "Close current document" \                -command {puts "selected: Close"}        separator sep1        command exit -label "Exit" -command {exit} \                -helpstr "Exit application"    }    menubutton edit -text "Edit" -menu {        options -tearoff false        command undo -label "Undo" -underline 0 \                -helpstr "Undo last command" \                -command {puts "selected: Undo"}        separator sep2        command cut -label "Cut" -underline 1 \                -helpstr "Cut selection to clipboard" \                -command {puts CUT}        command copy -label "Copy" -underline 1 \                -helpstr "Copy selection to clipboard" \                -command {puts "selected: Copy"}        command paste -label "Paste" -underline 0 \                -helpstr "Paste clipboard contents into document" \                -command {puts "selected: Paste"}    }    menubutton options -text "Options" -menu {        options -tearoff false -selectcolor blue        radiobutton byName -variable viewMode \                -value NAME -label "by Name" \                -helpstr "View files by name order" \                -command {puts "selected: by Name"}        radiobutton byDate -variable viewMode \                -value DATE -label "by Date" \                -helpstr "View files by date order" \                -command {puts "selected: by Date"}        cascade prefs -label "Preferences" -menu {            command colors -label Colors... \                -helpstr "Change text colors" \                -command {puts "selected: Colors..."}            command fonts -label "Fonts..." \                -helpstr "Change text font" \                -command {puts "selected: Fonts..."}        }    }}pack .mb -fill xframe .fr -width 200 -height 200 -background whitepack .fr -fill bothlabel .help -anchor w -textvariable helpVar -width 40pack .help -fill x

⌨️ 快捷键说明

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