tkinter.colorchooser
— Color choosing dialog¶
Source code:Lib/tkinter/colorchooser.py
Thetkinter.colorchooser
module provides theChooser
classas an interface to the native color picker dialog.Chooser
implementsa modal color choosing dialog window. TheChooser
class inherits fromtheDialog
class.
- classtkinter.colorchooser.Chooser(master=None,**options)¶
- tkinter.colorchooser.askcolor(color=None,**options)¶
Create a color choosing dialog. A call to this method will show the window,wait for the user to make a selection, and return the selected color (or
None
) to the caller.
See also
- Module
tkinter.commondialog
Tkinter standard dialog module