]>
Commit | Line | Data |
---|---|---|
be05b434 RD |
1 | import wx |
2 | ||
3 | if __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 |