File: tktest

package info (click to toggle)
lwm 1.01-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 228 kB
  • ctags: 592
  • sloc: ansic: 1,884; makefile: 495; sh: 6; tcl: 6
file content (7 lines) | stat: -rwxr-xr-x 232 bytes parent folder | download
1
2
3
4
5
6
7
#!/usr/bin/wish
    menubutton .mb -text menu
    pack .mb
    menu .mb.menu
    .mb configure -menu .mb.menu
    .mb.menu add command -label {quit} -command {destroy .}
    .mb.menu add command -label {barf} -command {puts "barf"}