Re: Tkinter colours lighter on OS X

Patrick Robertson <[email protected]>
Newsgroups gmane.comp.python.tkinter
Message-ID <[email protected]>
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 problematic lines are the last few lines that include: "require activestate::teapot::link”

Now, finally, I have a right-colour OS X .app bundle :)

Cheers


On 28 Ion 2015, at 18:11, Patrick Robertson <[email protected]> wrote:

> 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
> For anybody with this problem in the future I recommend reading:
> https://www.python.org/download/mac/tcltk/
> 
> It explains which version of ActiveTcl to install for which OS/Python combination, as well as giving information on how Python links to Tkinter/tkinter:
> 
>> The Python for Mac OS X installers downloaded from this website dynamically link at runtime to Tcl/Tk Mac OS X frameworks. …
> There’s more on that page above
> 
> 
> PS - I’ve been using Tkinter since 2015. It’s still great ;-) 
> 
> 
> On 28 Ion 2015, at 15:05, Michael O'Donnell <[email protected]> wrote:
> 
>> 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 <[email protected]> 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 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 no response which fixed the problem.
>>> 
>>> Sorry about that. IIRC It was a very obscure bug related to a change in
>>> color-rendering API in Cocoa that someone noticed and submitted a patch for;
>>> recent versions of ActiveTcl should not show the bug.
>>> 
>>> --Kevin
>>> 
>>> --
>>> Kevin Walzer
>>> Code by Kevin/Mobile Code by Kevin
>>> http://www.codebykevin.com
>>> http://www.wtmobilesoftware.com
>>> 
>>> 
>>> _______________________________________________
>>> Tkinter-discuss mailing list
>>> [email protected]
>>> https://mail.python.org/mailman/listinfo/tkinter-discuss
>> _______________________________________________
>> Tkinter-discuss mailing list
>> [email protected]
>> https://mail.python.org/mailman/listinfo/tkinter-discuss
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.