Share

Tk Toolkit

Tracker: Bugs

5 Recreating menu appends duplicate entries - ID: 2876709
Last Update: Settings changed ( wordtech )

In Tk-Cocoa, I've observed that if one tries to reset/recreate a specified
menu, the old menu isn't updated in place, but instead has additional,
redundant entries appended to the end of the menu. Here's how I reproduce
this step:

1. Run the Tk widget demo in Wish.
2. Choose the "menu demonstration" demo.
3. Select the "see code" button from the menu demonstration.
4. The menu has these entries: File, Basic, Cascades, Icons, More, Colors.
5. Click the "see code" button in the demo window.
6. The code window pops up; select the "rerun demo" window.
7. Instead of having the menu re-created in place, the menu now appends
these entires: Basic, Icons, Colors. The entire menu looks like this:
File, Basic, Cascades, Icons, More, Colors, Basic, Icons, Colors.

The menu should not behave this way.

I first observed this behavior in IDLE, a Python/Tkinter application, when
it's linked to Tk-Cocoa. I originally thought it was a problem with IDLE's
code, but after reproducing the behavior in Tk itself, I believe it's
something that needs to be addressed in Tk.


Kevin Walzer ( wordtech ) - 2009-10-11 22:41

5

Closed

Wont Fix

Daniel A. Steffen

11. Aqua Menus

None

Public


Comment ( 1 )

Date: 2009-10-20 14:52
Sender: wordtech

Further testing on Tcl-Mac shows that this is a Leopard (10.5)-specific bug
rooted in AppKit, one of the core Cocoa libraries. It doesn't appear in
Snow Leopard (10.6). Since it appears the AppKit bug won't be fixed in
Leopard, I'm closing this as won'tfix.


Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Open 2009-10-20 14:52 wordtech
resolution_id None 2009-10-20 14:52 wordtech
allow_comments 1 2009-10-20 14:52 wordtech
close_date - 2009-10-20 14:52 wordtech