Reputation: 3
Can anyone explain, why i get different results with this Code on linux and windows. On windows its a complete color picker and on Linux its Crap. Both Tkinter Modules are Version(8.6)
from tkinter import *
from tkinter.colorchooser import *
def getColor():
color = askcolor()
print color
Button(text='Select Color', command=getColor).pack()
mainloop()
Upvotes: 0
Views: 1222
Reputation: 386220
The answer to the question of why it's different on different platforms is that on both windows and the mac, the dialogs are provided by the underlying OS. On linux, tkinter must draw the dialog itself.
Upvotes: 1
Reputation: 4964
from the comments in the source code of colorchooser.py
:
# this module provides an interface to the native color dialogue
# available in Tk 4.2 and newer.
You are seeing a native dialog from underlying OS, not a dialog built the usual tkinter way.
Upvotes: 1