]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/demo/wxPyColourChooser.py
Reworked how stock objects are initialized. They now have an
[wxWidgets.git] / wxPython / demo / wxPyColourChooser.py
... / ...
CommitLineData
1# 11/21/2003 - Jeff Grimmett (grimmtooth@softhome.net)
2#
3# o Updated for wx namespace
4#
5# 12/14/2003 - Jeff Grimmett (grimmtooth@softhome.net)
6#
7# o Updated URL for SF link in overview.
8#
9
10import wx
11import wx.lib.colourchooser as cc
12
13#---------------------------------------------------------------
14
15class TestColourChooser(wx.Panel):
16 def __init__(self, parent, log):
17 wx.Panel.__init__(self, parent, -1)
18 self.log = log
19
20 chooser = cc.wxPyColourChooser(self, -1)
21 sizer = wx.BoxSizer(wx.VERTICAL)
22 sizer.Add(chooser, 0, wx.ALL, 25)
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
57http://sourceforge.net/projects/wxcolourchooser/. If you have
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])])