Tk Source Code

View Ticket
Login
Ticket UUID: 5824a992dff35dc78272548a834974d11b214a2b
Title: Images not displaying on Tk Labels
Type: Bug Version: 754c58b7155761924a08f597a90e44e27932859d
Submitter: hypnotoad Created on: 2015-02-27 16:29:52
Subsystem: 83. Mac OS X Build Assigned To: kevin_walzer
Priority: 8 Severity: Severe
Status: Closed Last Modified: 2015-02-28 04:20:17
Resolution: Works For Me Closed By: hypnotoad
    Closed on: 2015-02-28 04:20:17
Description:
The label widgets in Cocoa no longer display images if the label is embedded in a ttk::frame, and if it has also been assigned a -relief. This can be reproduced as follows:

image create photo icon:text -data {
R0lGODdhEAAQANUAAPz8/MDAwPPz9vj4+Pz7+729vdjY2v39/Pz8+8rKyru7u/Hy8b+/v/v7+uDh
4+Xl6P7+/cXFxfb29ry8vPDw8Pr6+bq6uri4uPr5+Pv6+vz7+ubl5eDf38jW4Pj39vn49/n5+Pr5
+f38/LW1tbOzs/b19ff29fv6+f38+7Gxsa2trfXz8/X09Pb19Pj39/n4+KysrJ2dnfPy8vTy8vf1
9ff29pCQkIaGhvLw8PPx8fPy8fTz8/X083p6ev///////ywAAAAAEAAQAAAGlkAAIBAQEI3FwEDI
DBAKhgMUUUgoFkwAo+F4HLoQR0QyoTALlQYBcThAIJbLxcKcYCoZDdsN2XDoQhYdg4SFHRdMFx4f
ICF5CCJ8iEIjhpYjTCQlJouNJw0IKAckTCmWhilMKissLZwuLyGfBCpMMKeFMEwxMjOsLTQ1sHcx
TDa4hDZMNzg5OjM7PMDCHzdMPdjZ2tkAQQA7
}
toplevel .test
# This label displays an image
label .test.l -image icon:text 
pack .test.l -side top

# This label does not display an image
label .test.m -image icon:text -relief sunken
pack .test.m -side top

ttk::frame .test.f
pack .test.f -side top

# This label displays an image
label .test.f.l -image icon:text 
pack .test.f.l -side top

# This label displays an image
label .test.f.m -image icon:text -relief sunken
pack .test.f.m -side top
User Comments: hypnotoad added on 2015-02-28 04:19:11:
I can confirm that wish no longer exhibits this behavior when compiled with the new version of Tk.

kevin_walzer added on 2015-02-28 03:00:17:
Committed a fix that seems to address the issue--please test and I will close this bug.