]> git.saurik.com Git - wxWidgets.git/blame - wxPython/samples/wxPIA_book/Chapter-09/font_box.py
fix building/running of tex2rtf
[wxWidgets.git] / wxPython / samples / wxPIA_book / Chapter-09 / font_box.py
CommitLineData
be05b434
RD
1import wx
2
3if __name__ == "__main__":
4 app = wx.PySimpleApp()
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())
12 dialog.Destroy()
13
14
15
16