]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxPyColourChooser.py
1 # 11/21/2003 - Jeff Grimmett (grimmtooth@softhome.net)
3 # o Updated for wx namespace
5 # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net)
7 # o wx renamer not applied to library.
11 import wx
.lib
.colourchooser
as cc
13 #---------------------------------------------------------------
15 class TestColourChooser(wx
.Panel
):
16 def __init__(self
, parent
, log
):
17 wx
.Panel
.__init
__(self
, parent
, -1)
20 chooser
= cc
.wxPyColourChooser(self
, -1)
21 sizer
= wx
.BoxSizer(wx
.VERTICAL
)
22 sizer
.Add(chooser
, 0, wx
.ALL
, 25)
24 self
.SetAutoLayout(True)
27 #---------------------------------------------------------------
29 def runTest(frame
, nb
, log
):
30 win
= TestColourChooser(nb
, log
)
33 #---------------------------------------------------------------
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 :)
44 ------------------------------
46 The demo (demo/wxPyColourChooser.py code shows how to display
47 a colour chooser and retrieve its options.
49 Contact and Author Info
50 ------------------------------
52 wxPyColourChooser was written and is maintained by:
54 Michael Gilfix <mgilfix@eecs.tufts.edu>
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
64 if __name__
== '__main__':
67 run
.main(['', os
.path
.basename(sys
.argv
[0])])