tkinter.colorchooser — 颜色选取对话框

源代码: 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 tkinter.colorchooser. Chooser ( master = None , ** 选项 )
tkinter.colorchooser. askcolor ( color = None , ** 选项 )

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.

另请参阅

模块 tkinter.commondialog

Tkinter standard dialog module