1999-04-29 23:29:54 -04:00
|
|
|
|
|
|
|
from wxPython.wx import *
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
def runTest(frame, nb, log):
|
2001-02-16 03:19:50 -05:00
|
|
|
dlg = wxColourDialog(frame)
|
|
|
|
dlg.GetColourData().SetChooseFull(true)
|
1999-04-29 23:29:54 -04:00
|
|
|
if dlg.ShowModal() == wxID_OK:
|
|
|
|
data = dlg.GetColourData()
|
|
|
|
log.WriteText('You selected: %s\n' % str(data.GetColour().Get()))
|
|
|
|
dlg.Destroy()
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
overview = """\
|
|
|
|
This class represents the colour chooser dialog.
|
|
|
|
|
|
|
|
|
|
|
|
"""
|