Skip to content Skip to sidebar Skip to footer

Show Images Using Python/tkinter On Scaled (e.g. Retina) Displays

When showing images from python/tkinter, using code such as: self.label = tk.Label(self.root, image=image) self.label.pack() the image appears pixelated on a MBP retina, i.e. pixe

Solution 1:

If you use the Cocoa version of Tk (for example the ActiveState version), you might be able to add something to the plist of your program, see: https://developer.apple.com/library/mac/#documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Explained/Explained.html#//apple_ref/doc/uid/TP40012302-CH4-SW10

NSHighResolutionCapable YES

But not sure if it works.

If you still use the older Carbon based version, it will not work.


Post a Comment for "Show Images Using Python/tkinter On Scaled (e.g. Retina) Displays"