]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-09/font_box.py
3 if __name__
== "__main__":
5 dialog
= wx
.FontDialog(None, wx
.FontData())
6 if dialog
.ShowModal() == wx
.ID_OK
:
7 data
= dialog
.GetFontData()
8 font
= data
.GetChosenFont()
9 colour
= data
.GetColour()
10 print 'You selected: "%s", %d points\n' % (
11 font
.GetFaceName(), font
.GetPointSize())