Debian Codegraph @

Doc/library/tkinter.colorchooser.rst

raw
1 :mod:`!tkinter.colorchooser` --- Color choosing dialog
2 ======================================================
3
4 .. module:: tkinter.colorchooser
5 :synopsis: Color choosing dialog
6
7 **Source code:** :source:`Lib/tkinter/colorchooser.py`
8
9 --------------
10
11 The :mod:`!tkinter.colorchooser` module provides the :class:`Chooser` class
12 as an interface to the native color picker dialog. ``Chooser`` implements
13 a modal color choosing dialog window. The ``Chooser`` class inherits from
14 the :class:`~tkinter.commondialog.Dialog` class.
15
16 .. class:: Chooser(master=None, **options)
17
18 .. function:: askcolor(color=None, **options)
19
20 Create a color choosing dialog. A call to this method will show the window,
21 wait for the user to make a selection, and return the selected color (or
22 ``None``) to the caller.
23
24
25 .. seealso::
26
27 Module :mod:`tkinter.commondialog`
28 Tkinter standard dialog module