Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jcf20010

macrumors newbie
Original poster
Aug 14, 2010
22
1
iMac running OSX 10.14.6.

I'm writing a Python/tinker GUI application for my own use and when I try to assign a color to a button or the text of a button it always stays black on white. It looks like Apple enforces their own style when it comes to GUIs.
Is there any way of overriding it the Apple style?
 
Install the module tkmacosx with pip3 install tkmacosx
then import it for your button at the top of your python code
from tkmacosx import Button

Done! :)
 
Also, when I wrote pip3 install tkmacosx
that's for python3. I assume the same package probably exists for python 2, but then it'd be pip, not pip3
I ended up installing pip like this sudo easy_install pip .
After that I was able to install the package and it works. :)
Thanks.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.