]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxColourDialog.py
Some Unicode compilation fixes. This Unicode stuff in file functions is
[wxWidgets.git] / wxPython / demo / wxColourDialog.py
index 1f06f5cb288bfae9cb58b96e1ad87c4089cd180a..e750561b93fe391b1343a82c114b9eb7a8abdf39 100644 (file)
@@ -4,9 +4,8 @@ from wxPython.wx import *
 #---------------------------------------------------------------------------
 
 def runTest(frame, nb, log):
-    data = wxColourData()
-    data.SetChooseFull(true)
-    dlg = wxColourDialog(frame, data)
+    dlg = wxColourDialog(frame)
+    dlg.GetColourData().SetChooseFull(true)
     if dlg.ShowModal() == wxID_OK:
         data = dlg.GetColourData()
         log.WriteText('You selected: %s\n' % str(data.GetColour().Get()))