]>
Commit | Line | Data |
---|---|---|
cf694132 RD |
1 | |
2 | from wxPython.wx import * | |
3 | ||
4 | #--------------------------------------------------------------------------- | |
5 | ||
6 | def runTest(frame, nb, log): | |
1b62f00d | 7 | dlg = wxColourDialog(frame) |
1e4a197e | 8 | dlg.GetColourData().SetChooseFull(True) |
cf694132 RD |
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 | ||
cf694132 RD |
30 | |
31 | """ | |
1fded56b RD |
32 | |
33 | ||
34 | ||
35 | ||
36 | ||
37 | if __name__ == '__main__': | |
38 | import sys,os | |
39 | import run | |
40 | run.main(['', os.path.basename(sys.argv[0])]) | |
41 |