]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/wxPyColourChooser.py
Swtch to using Bind, and use better styles for the code viewer
[wxWidgets.git] / wxPython / demo / wxPyColourChooser.py
CommitLineData
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
10import wx
11import wx.lib.colourchooser as cc
1e4a197e
RD
12
13#---------------------------------------------------------------
14
8fa876ca 15class 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
29def runTest(frame, nb, log):
30 win = TestColourChooser(nb, log)
31 return win
32
33#---------------------------------------------------------------
34
35overview = """
36The wxPyColourChooser component creates a colour chooser window
37that is similar to the Microsoft Windows colour chooser dialog.
38This dialog component is drawn in a panel, and thus can be
39embedded inside any widget (although it cannot be resized).
40This colour chooser may also be substituted for the colour
41chooser on any platform that might have an ugly one :)
42
43How to use it
44------------------------------
45
46The demo (demo/wxPyColourChooser.py code shows how to display
47a colour chooser and retrieve its options.
48
49Contact and Author Info
50------------------------------
51
52wxPyColourChooser was written and is maintained by:
53
54 Michael Gilfix <mgilfix@eecs.tufts.edu>
55
56You can find the latest wxPyColourChooser code at
b881fc78 57http://sourceforge.net/projects/wxcolourchooser/. If you have
1e4a197e
RD
58any suggestions or want to submit a patch, please send
59it my way at: mgilfix@eecs.tufts.edu
60"""
61
62
63
64if __name__ == '__main__':
65 import sys,os
66 import run
67 run.main(['', os.path.basename(sys.argv[0])])