]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/demo/wxColourDialog.py
minor changes
[wxWidgets.git] / utils / wxPython / demo / wxColourDialog.py
1
2 from wxPython.wx import *
3
4 #---------------------------------------------------------------------------
5
6 def 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
28 overview = """\
29 This class represents the colour chooser dialog.
30
31 wxColourDialog()
32 ------------------------------
33
34 wxColourDialog(wxWindow* parent, wxColourData* data = NULL)
35
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.
37
38 """