Tk Source Code

View Ticket
Login
Ticket UUID: 4f84af7b4cd5df34189a46ef611ffb89fba6212a
Title: [tk fontchooser] does not work on Mac OS X if no initial font configured
Type: Bug Version: 8.6.3
Submitter: anonymous Created on: 2014-11-12 17:23:24
Subsystem: 33. Generic Dialog Support Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2014-11-12 17:23:24
Resolution: None Closed By: nobody
    Closed on:
Description:
Environment: Mac OS X "Mavericks" 10.9.5, Tcl/Tk 8.6.3 (built from fossil). 

If no initial font has been configured for [tk fontchooser] on Mac OS X then any registered -command callback is not fired and any manual call to [tk fontchooser configure -font] returns an empty string regardless of what font is selected in the picker widget. Once an initial call to [tk fontchooser configure -font "Any font"] has been made (for any non-empty string) then the widget appears to work as expected. After this, the widget works correctly even if the font is configured back to an empty string again.