Tk Source Code

View Ticket
Login
Ticket UUID: cd43760856631e45f80f5be863e2472b3288f743
Title: OSX menus don't work in tkcon
Type: Bug Version: 8.6.5
Submitter: anonymous Created on: 2016-04-11 07:36:33
Subsystem: 11. Aqua Menus Assigned To: kevin_walzer
Priority: 5 Medium Severity: Important
Status: Open Last Modified: 2016-04-17 18:05:07
Resolution: None Closed By: nobody
    Closed on:
Description:
I found a regression in Tk 8.6.5. The menus do not work under some circumstances in 8.6.5 (running on El Capitan 10.11.4). How to reproduce:

./wish865 tkcon.tcl

=> Menus DON't work. If you click into the main menu bar, nothing happens. 

However:
./wish865
% source tkcon.tcl 
% tkcon::Init
% 

Menus DO work. If using wish864, it works in both cases. 

It seems that an additional update is needed. If I add an update before the tkcon::AtSource command in tkcon.tcl, the menus DO work. This workaround causes, of course, the main window to flash as an empty box.
User Comments: kevin_walzer added on 2016-04-17 18:05:07:
Tested against a fresh checkout of core-8-6-branch for both Tcl and Tk. Version of Tkcon tested was RCS: @(#) $Id: tkcon.tcl,v 1.123 2015/10/20 21:41:36 hobbs Exp, obtained via "download latest version" from the menu. Still can't reproduce these errors, menu works fine.

anonymous added on 2016-04-17 16:45:37:
I checked back using a fresh checkout of Tcl/Tk 8.6.5 and tkcon. The behaviour is shown in the video uploaded here:

https://youtu.be/lE0fP5HAC-8

It seems that the main Tk window holds a grab in the beginning, which even makes the Apple menu non-functional. After switching to a different program, it works as expected.

anonymous added on 2016-04-11 11:41:36:
Strange - I'll have to check it again with a fresh checkout of both tkcon and Tcl/Tk. Maybe it has to do with the fact that I'm using a tclkit or an outdated tkcon.

kevin_walzer added on 2016-04-11 10:26:23:
Unable to reproduce using current 8.6.5 source and TkCon source from http://tkcon.cvs.sourceforge.net/viewvc/tkcon/tkcon/tkcon.tcl?revision=HEAD.  Runs fine, menus load fine, etc.