I’m having a problem whereby every colour I declare in Tkinter (background
colour, font colour etc.) is always a shade lighter when viewed on OS X.
Take for example the test code:
import Tkinter
root = Tkinter.Tk()
root.configure(bg="#00")
root.configure(borderwidth=20)
root.geometry('%dx%d
Hi Patrick,
I noted something similar in a post to this list in May 2013:
https://mail.python.org/pipermail/tkinter-discuss/2013-May/003446.html
My GUI used a gif for borders, and I will with a colored canvas.
On the (then) new Macosx, the colors of the gif were different
from the canvas color
On 1/28/15 9:03 AM, Michael O'Donnell wrote:
My GUI used a gif for borders, and I will with a colored canvas.
On the (then) new Macosx, the colors of the gif were different
from the canvas color.
...while on Windows or earlier versions of Macosx, the gif
and canvas merged seamlessly.
I received
On 1/28/15 2:20 AM, Patrick Robertson wrote:
I'm running OS X 10.9 with Python 2.7.8, Tc/Tk 8.5 (Tkinter specifies
__version__ = '$Revision: 81008 $')
Has anybody else experienced this problem, and if so what is the right
fix? Thanks
OS X changed its default rendering of RGB a few years ago; Tk
On 1/28/15 2:20 AM, Patrick Robertson wrote:
I'm running OS X 10.9 with Python 2.7.8, Tc/Tk 8.5 (Tkinter specifies
__version__ = '$Revision: 81008 $')
Has anybody else experienced this problem, and if so what is the right
fix? Thanks
OS X changed its default rendering of RGB a few years ago; Tk
Thanks Kevin,
I will remove my fixing code and see if colours
are displayed ok again.
Mick
On 28 January 2015 at 15:08, Kevin Walzer wrote:
> On 1/28/15 9:03 AM, Michael O'Donnell wrote:
>>
>> My GUI used a gif for borders, and I will with a colored canvas.
>> On the (then) new Macosx, the
Thanks both Kevin and Mick,
Mick - it’s always nice to know I’m not the only one with the problem!
Kevin - your solution worked.
I initially installed ActiveTcl 8.6, which it seems isn’t compatible with
Python 2/3
At the time of writing ActiveTcl 8.4/8.5 (32 bit/64 bit) are recommended for OS
X
Just as a follow up:
If you’re packaging ActiveTcl into a .app for OS X (using PyInstaller, py2app
or similar) it may not work from the onset.
I ended up having to comment out the ‘teapot’ code in
/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/Scripts/init.tcl to
get it working
The p