]>
Commit | Line | Data |
---|---|---|
8fa876ca RD |
1 | # 11/21/2003 - Jeff Grimmett (grimmtooth@softhome.net) |
2 | # | |
3 | # o Updated for wx namespace | |
4 | # | |
b881fc78 | 5 | # 12/14/2003 - Jeff Grimmett (grimmtooth@softhome.net) |
8fa876ca | 6 | # |
b881fc78 | 7 | # o Updated URL for SF link in overview. |
8fa876ca RD |
8 | # |
9 | ||
10 | import wx | |
11 | import wx.lib.colourchooser as cc | |
1e4a197e RD |
12 | |
13 | #--------------------------------------------------------------- | |
14 | ||
8fa876ca | 15 | class TestColourChooser(wx.Panel): |
1e4a197e | 16 | def __init__(self, parent, log): |
8fa876ca | 17 | wx.Panel.__init__(self, parent, -1) |
1e4a197e RD |
18 | self.log = log |
19 | ||
8fa876ca RD |
20 | chooser = cc.wxPyColourChooser(self, -1) |
21 | sizer = wx.BoxSizer(wx.VERTICAL) | |
22 | sizer.Add(chooser, 0, wx.ALL, 25) | |
1e4a197e RD |
23 | |
24 | self.SetAutoLayout(True) | |
25 | self.SetSizer(sizer) | |
26 | ||
27 | #--------------------------------------------------------------- | |
28 | ||
29 | def runTest(frame, nb, log): | |
30 | win = TestColourChooser(nb, log) | |
31 | return win | |
32 | ||
33 | #--------------------------------------------------------------- | |
34 | ||
35 | overview = """ | |
36 | The wxPyColourChooser component creates a colour chooser window | |
37 | that is similar to the Microsoft Windows colour chooser dialog. | |
38 | This dialog component is drawn in a panel, and thus can be | |
39 | embedded inside any widget (although it cannot be resized). | |
40 | This colour chooser may also be substituted for the colour | |
41 | chooser on any platform that might have an ugly one :) | |
42 | ||
43 | How to use it | |
44 | ------------------------------ | |
45 | ||
46 | The demo (demo/wxPyColourChooser.py code shows how to display | |
47 | a colour chooser and retrieve its options. | |
48 | ||
49 | Contact and Author Info | |
50 | ------------------------------ | |
51 | ||
52 | wxPyColourChooser was written and is maintained by: | |
53 | ||
54 | Michael Gilfix <mgilfix@eecs.tufts.edu> | |
55 | ||
56 | You can find the latest wxPyColourChooser code at | |
b881fc78 | 57 | http://sourceforge.net/projects/wxcolourchooser/. If you have |
1e4a197e RD |
58 | any suggestions or want to submit a patch, please send |
59 | it my way at: mgilfix@eecs.tufts.edu | |
60 | """ | |
61 | ||
62 | ||
63 | ||
64 | if __name__ == '__main__': | |
65 | import sys,os | |
66 | import run | |
67 | run.main(['', os.path.basename(sys.argv[0])]) |