]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxColourDialog.py
Modified wxGetHomeDir to take environment variable HOME into account.
[wxWidgets.git] / wxPython / demo / wxColourDialog.py
index e750561b93fe391b1343a82c114b9eb7a8abdf39..151db30873bd2d8bf21dc79e558ccd2f0c9a65e1 100644 (file)
@@ -5,7 +5,7 @@ from wxPython.wx import *
 
 def runTest(frame, nb, log):
     dlg = wxColourDialog(frame)
-    dlg.GetColourData().SetChooseFull(true)
+    dlg.GetColourData().SetChooseFull(True)
     if dlg.ShowModal() == wxID_OK:
         data = dlg.GetColourData()
         log.WriteText('You selected: %s\n' % str(data.GetColour().Get()))
@@ -27,11 +27,15 @@ def runTest(frame, nb, log):
 overview = """\
 This class represents the colour chooser dialog.
 
-wxColourDialog()
-------------------------------
 
-wxColourDialog(wxWindow* parent, wxColourData* data = NULL)
+"""
 
-Constructor. Pass a parent window, and optionally a pointer to a block of colour data, which will be copied to the colour dialog's colour data.
 
-"""
+
+
+
+if __name__ == '__main__':
+    import sys,os
+    import run
+    run.main(['', os.path.basename(sys.argv[0])])
+