tkinter.colorchooser
--- Color choosing dialogP
Source code: Lib/tkinter/colorchooser.py
The tkinter.colorchooser
module provides the Chooser
class
as an interface to the native color picker dialog. Chooser
implements
a modal color choosing dialog window. The Chooser
class inherits from
the Dialog
class.
-
class
tkinter.colorchooser.
Chooser
(master=None, **options)P
-
tkinter.colorchooser.
askcolor
(color=None, **options)P 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.
参见
- Module
tkinter.commondialog
Tkinter standard dialog module