Font of wx.Dialog

chris botos chris.botos at gmail.com
Fri Nov 2 13:59:32 PDT 2007


Hi all,

I've been trying to set the font of various stock dialogs, but without
success.  For example:

dlg = wx.MessageDialog(topframe, "The message", "A message", wx.YES_NO)
dlg.SetFont(wx.Font(14, wx.Swiss, wx.Normal, wx.Normal, 0, "Arial"))
retval = dlg.ShowModal()
...
etc.

Am I doing this wrong, or is the font for stock dialogs not changeable?
My platform is Solaris 10, GTK+2.4, wxPython 2.6.4.3, python 2.4.4.
Thanks in advance.

-Chris Botos




More information about the wxpython-users mailing list