Debian Codegraph @

Doc/library/tkinter.colorchooser.rst

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