]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/demo/wxColourDialog.py
it is now possible to add custom buttons into wxHtmlHelpFrame's toolbar
[wxWidgets.git] / utils / wxPython / demo / wxColourDialog.py
CommitLineData
cf694132
RD
1
2from wxPython.wx import *
3
4#---------------------------------------------------------------------------
5
6def runTest(frame, nb, log):
7 data = wxColourData()
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()))
13 dlg.Destroy()
14
15#---------------------------------------------------------------------------
16
17
18
19
20
21
22
23
24
25
26
27
28overview = """\
29This class represents the colour chooser dialog.
30
31wxColourDialog()
32------------------------------
33
34wxColourDialog(wxWindow* parent, wxColourData* data = NULL)
35
36Constructor. 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.
37
38"""