]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxColourDialog.py
   2 from wxPython
.wx 
import * 
   4 #--------------------------------------------------------------------------- 
   6 def runTest(frame
, nb
, log
): 
   7     dlg 
= wxColourDialog(frame
) 
   8     dlg
.GetColourData().SetChooseFull(true
) 
   9     if dlg
.ShowModal() == wxID_OK
: 
  10         data 
= dlg
.GetColourData() 
  11         log
.WriteText('You selected: %s\n' % str(data
.GetColour().Get())) 
  14 #--------------------------------------------------------------------------- 
  28 This class represents the colour chooser dialog.