]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/wxPyColourChooser.py
support Show() in wxFlexGridSizer (patch 737850)
[wxWidgets.git] / wxPython / demo / wxPyColourChooser.py
CommitLineData
1e4a197e
RD
1from wxPython.wx import *
2from wxPython.lib.colourchooser import wxPyColourChooser
3
4#---------------------------------------------------------------
5
6class TestColourChooser(wxPanel):
7 def __init__(self, parent, log):
8 wxPanel.__init__(self, parent, -1)
9 self.log = log
10
11 chooser = wxPyColourChooser(self, -1)
12 sizer = wxBoxSizer(wxVERTICAL)
13 sizer.Add(chooser, 0, wxALL, 25)
14
15 self.SetAutoLayout(True)
16 self.SetSizer(sizer)
17
18#---------------------------------------------------------------
19
20def runTest(frame, nb, log):
21 win = TestColourChooser(nb, log)
22 return win
23
24#---------------------------------------------------------------
25
26overview = """
27The wxPyColourChooser component creates a colour chooser window
28that is similar to the Microsoft Windows colour chooser dialog.
29This dialog component is drawn in a panel, and thus can be
30embedded inside any widget (although it cannot be resized).
31This colour chooser may also be substituted for the colour
32chooser on any platform that might have an ugly one :)
33
34How to use it
35------------------------------
36
37The demo (demo/wxPyColourChooser.py code shows how to display
38a colour chooser and retrieve its options.
39
40Contact and Author Info
41------------------------------
42
43wxPyColourChooser was written and is maintained by:
44
45 Michael Gilfix <mgilfix@eecs.tufts.edu>
46
47You can find the latest wxPyColourChooser code at
48http://www.sourceforge.net/wxcolourchooser. If you have
49any suggestions or want to submit a patch, please send
50it my way at: mgilfix@eecs.tufts.edu
51"""
52
53
54
55if __name__ == '__main__':
56 import sys,os
57 import run
58 run.main(['', os.path.basename(sys.argv[0])])