.. wxPython Phoenix documentation This file was generated by Phoenix's sphinx generator and associated tools, do not edit by hand. Copyright: (c) 2011-2017 by Total Control Software License: wxWindows License .. include:: headings.inc .. _wx.ColourDialog: ========================================================================================================================================== |phoenix_title| **wx.ColourDialog** ========================================================================================================================================== This class represents the colour chooser dialog. .. seealso:: :ref:`ColourDialog Overview `, :ref:`wx.Colour`, :ref:`wx.ColourData`, `wx.GetColourFromUser` | |class_hierarchy| Class Hierarchy ================================= .. raw:: html
Inheritance diagram for class ColourDialog:

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~wx.ColourDialog.__init__` Constructor. :meth:`~wx.ColourDialog.Create` Same as :ref:`wx.ColourDialog`. :meth:`~wx.ColourDialog.GetColourData` Returns the colour data associated with the colour dialog. :meth:`~wx.ColourDialog.ShowModal` Shows the dialog, returning ``wx.ID_OK`` if the user pressed ``wx.OK``, and ``wx.ID_CANCEL`` otherwise. ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~wx.ColourDialog.ColourData` See :meth:`~wx.ColourDialog.GetColourData` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: wx.ColourDialog(Dialog) **Possible constructors**:: ColourDialog(parent, data=None) This class represents the colour chooser dialog. .. method:: __init__(self, parent, data=None) Constructor. Pass a parent window, and optionally a pointer to a block of colour data, which will be copied to the colour dialog's colour data. Custom colours from colour data object will be used in the dialog's colour palette. Invalid entries in custom colours list will be ignored on some platforms(GTK) or replaced with white colour on platforms where custom colours palette has fixed size (MSW). :param `parent`: :type `parent`: wx.Window :param `data`: :type `data`: wx.ColourData .. seealso:: :ref:`wx.ColourData` .. method:: Create(self, parent, data=None) Same as :ref:`wx.ColourDialog`. :param `parent`: :type `parent`: wx.Window :param `data`: :type `data`: wx.ColourData :rtype: `bool` .. method:: GetColourData(self) Returns the colour data associated with the colour dialog. :rtype: :ref:`wx.ColourData` .. method:: ShowModal(self) Shows the dialog, returning ``wx.ID_OK`` if the user pressed ``wx.OK``, and ``wx.ID_CANCEL`` otherwise. :rtype: `int` .. attribute:: ColourData See :meth:`~wx.ColourDialog.GetColourData`