]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-09/color_box.py
3 if __name__
== "__main__":
5 dialog
= wx
.ColourDialog(None)
6 dialog
.GetColourData().SetChooseFull(True)
7 if dialog
.ShowModal() == wx
.ID_OK
:
8 data
= dialog
.GetColourData()
9 print 'You selected: %s\n' % str(data
.GetColour().Get())