]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxColourDialog.py
added destructor (correction for Mac OS X)
[wxWidgets.git] / wxPython / demo / wxColourDialog.py
1
2 from wxPython.wx import *
3
4 #---------------------------------------------------------------------------
5
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()))
12 dlg.Destroy()
13
14 #---------------------------------------------------------------------------
15
16
17
18
19
20
21
22
23
24
25
26
27 overview = """\
28 This class represents the colour chooser dialog.
29
30 wxColourDialog()
31 ------------------------------
32
33 wxColourDialog(wxWindow* parent, wxColourData* data = NULL)
34
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.
36
37 """