Artifact
0b546ecbb51d34d9b425b5101df765f8fd5e2d58:
Attachment "menubug.tcl" to
ticket [1797555f]
added by
gregcouch
2007-10-20 02:18:42.
#!tclsh
package require Tk
frame .app
menu .app.menubar -type menubar -tearoff False
menu .app.menubar.select -title Select
menu .app.menubar.select.chain -title Chain
.app.menubar.select insert 1 cascade -menu .app.menubar.select.chain -label Chain
.app.menubar add cascade -menu .app.menubar.select -underline 0 -label Select
pack configure .app -expand 1 -fill both
. configure -menu .app.menubar
proc dummy args {
}
.app.menubar.select.chain insert 1 command -command dummy -label {(no ID)}
update idletasks
# The following two lines cause Tk to read from and write to freed memory
destroy .app.menubar.select.chain
.app.menubar.select delete 1
exit