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