]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxColourDialog.py
2 from wxPython
.wx
import *
4 #---------------------------------------------------------------------------
6 def runTest(frame
, nb
, log
):
7 dlg
= wxColourDialog(frame
)
8 dlg
.GetColourData().SetChooseFull(true
)
9 if dlg
.ShowModal() == wxID_OK
:
10 data
= dlg
.GetColourData()
11 log
.WriteText('You selected: %s\n' % str(data
.GetColour().Get()))
14 #---------------------------------------------------------------------------
28 This class represents the colour chooser dialog.
31 ------------------------------
33 wxColourDialog(wxWindow* parent, wxColourData* data = NULL)
35 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.