1999-04-30 03:29:54 +00:00
|
|
|
|
|
|
|
from wxPython.wx import *
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
def runTest(frame, nb, log):
|
2001-02-16 08:19:50 +00:00
|
|
|
dlg = wxColourDialog(frame)
|
|
|
|
dlg.GetColourData().SetChooseFull(true)
|
1999-04-30 03:29:54 +00: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.
|
|
|
|
|
|
|
|
|
|
|
|
"""
|