[wxPython-users] Font of wx.Dialog

Robin Dunn robin at alldunn.com
Fri Nov 2 14:51:59 PDT 2007


chris botos wrote:
> 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.

Stock dialogs are not changeable, unless they happen to be implemented 
genericly in wx code for your platform.  Otherwise they are usually just 
wrappers around a platform API and not real wx.Dialogs at all.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list