On 12/15/14 3:54 PM, Trevor Williams wrote:
> Does anyone know how to associate the About... menu with either a custom about window or get my application-specific about information to appear? I have the Info.plist file in the Contents directory to only contain my information and the name of the application in the About... menu is correct; however, clicking on this menu reveals an About window for Tcl/Tk itself. If I grep for one of the strings in the Tcl/Tk About window, the only files containing a match are the wish and tclsh executables.
>
> I am using version 8.5.15. Anyone have any ideas?
I've found that I just had to listen for the About menu item name with
using menu.add_command(label=aboutMenuLabel, ...)
where aboutMenuLabel is of the form "About <appName>"
This is different than other Mac-specific menu items such as
Preferences, Help and Quit, all of which use this form:
root.createcommand("::tk::mac::ShowPreferences", func).
|