]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxPyColourChooser.py
Commented out WM_MOUSELEAVE until it can be fixed
[wxWidgets.git] / wxPython / demo / wxPyColourChooser.py
1 # 11/21/2003 - Jeff Grimmett (grimmtooth@softhome.net)
2 #
3 # o Updated for wx namespace
4 #
5 # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net)
6 #
7 # o wx renamer not applied to library.
8 #
9
10 import wx
11 import wx.lib.colourchooser as cc
12
13 #---------------------------------------------------------------
14
15 class 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
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
57 http://www.sourceforge.net/wxcolourchooser. If you have
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])])