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)
|
2003-03-25 01:35:27 -05:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
"""
|
2003-07-02 19:13:10 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
import sys,os
|
|
|
|
import run
|
|
|
|
run.main(['', os.path.basename(sys.argv[0])])
|
|
|
|
|