X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..ca6c45b23dd2a583dabbf8567f23657d310eb0b0:/wxPython/demo/wxPyColourChooser.py diff --git a/wxPython/demo/wxPyColourChooser.py b/wxPython/demo/wxPyColourChooser.py index c213042aa3..b31fe51326 100644 --- a/wxPython/demo/wxPyColourChooser.py +++ b/wxPython/demo/wxPyColourChooser.py @@ -1,16 +1,30 @@ -from wxPython.wx import * -from wxPython.lib.colourchooser import wxPyColourChooser +# 11/21/2003 - Jeff Grimmett (grimmtooth@softhome.net) +# +# o Updated for wx namespace +# +# 12/14/2003 - Jeff Grimmett (grimmtooth@softhome.net) +# +# o Updated URL for SF link in overview. +# +# 12/21/2003 - Jeff Grimmett (grimmtooth@softhome.net) +# +# o wxPyColorChooser -> PyColorChooser +# o wxPyColourChooser -> PyColourChooser +# + +import wx +import wx.lib.colourchooser as cc #--------------------------------------------------------------- -class TestColourChooser(wxPanel): +class TestColourChooser(wx.Panel): def __init__(self, parent, log): - wxPanel.__init__(self, parent, -1) + wx.Panel.__init__(self, parent, -1) self.log = log - chooser = wxPyColourChooser(self, -1) - sizer = wxBoxSizer(wxVERTICAL) - sizer.Add(chooser, 0, wxALL, 25) + chooser = cc.PyColourChooser(self, -1) + sizer = wx.BoxSizer(wx.VERTICAL) + sizer.Add(chooser, 0, wx.ALL, 25) self.SetAutoLayout(True) self.SetSizer(sizer) @@ -24,7 +38,7 @@ def runTest(frame, nb, log): #--------------------------------------------------------------- overview = """ -The wxPyColourChooser component creates a colour chooser window +The PyColourChooser component creates a colour chooser window that is similar to the Microsoft Windows colour chooser dialog. This dialog component is drawn in a panel, and thus can be embedded inside any widget (although it cannot be resized). @@ -34,18 +48,18 @@ chooser on any platform that might have an ugly one :) How to use it ------------------------------ -The demo (demo/wxPyColourChooser.py code shows how to display +The demo (demo/PyColourChooser.py code shows how to display a colour chooser and retrieve its options. Contact and Author Info ------------------------------ -wxPyColourChooser was written and is maintained by: +PyColourChooser was written and is maintained by: Michael Gilfix -You can find the latest wxPyColourChooser code at -http://www.sourceforge.net/wxcolourchooser. If you have +You can find the latest PyColourChooser code at +http://sourceforge.net/projects/wxcolourchooser/. If you have any suggestions or want to submit a patch, please send it my way at: mgilfix@eecs.tufts.edu """