On Wed, 26 Dec 2001 23:19:05 -0500 [EMAIL PROTECTED] wrote: > On December 25, Net Llama enlightened our ignorance thusly: > % I'm working on a Tcl/Tk app, and i'm having problems wraping my head > % around the concept of deleting menu items. My understanding is that the > % top most item is index=0 and then it counts downward. So, that leads me > % to the following: > % * If .buttons.get.mnu is the path name > % * I want to keep the first item from the top, index=0 > % * I want to delete all the other items (which are dynmaically generated, > % and are never the same number of items) > % * The following command should work: > % .buttons.get.mnu delete 1 end > % > % However, it doesn't work right. It deletes all the menu items, > % including the first. I'm stumped. > > What happens if you do "delete 2 end"?
I have an app that may help. It builds a list box and allows you to add and delete items from the list. http://freshmeat.net/projects/tkweather/ -- ----------------------------------------------------------------------- | Alan K. Jackson | To see a World in a Grain of Sand | | [EMAIL PROTECTED] | And a Heaven in a Wild Flower, | | www.ajackson.org | Hold Infinity in the palm of your hand | | Houston, Texas | And Eternity in an hour. - Blake | ----------------------------------------------------------------------- _______________________________________________ Linux-users mailing list Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users