Dialog font size?

I'm trying to make the font larger in my dialog boxes. Why doesn't this have any effect on the font size?

class ConfirmAction(wx.MessageDialog):
     def __init__(self, parent):
         wx.MessageDialog.__init__(self, parent, "Are you sure?", "Confirm",
                                  wx.YES_NO | wx.STAY_ON_TOP |
                                  wx.ICON_EXCLAMATION )
         self.SetFont(wx.Font(16, wx.DEFAULT, wx.NORMAL, wx.NORMAL))
         self.Refresh()

     def StartMeUp(self):
         retCode = self.ShowModal() # Show it and force user to deal with it
         self.Destroy() # Kill ourself off

         if retCode == wx.ID_YES:
             return True # Action confirmed
         else:
             return False # Action canceled

Thanks,
Michael

Michael Hipp wrote:

I'm trying to make the font larger in my dialog boxes. Why doesn't this have any effect on the font size?

class ConfirmAction(wx.MessageDialog):
    def __init__(self, parent):
        wx.MessageDialog.__init__(self, parent, "Are you sure?", "Confirm",
                                 wx.YES_NO | wx.STAY_ON_TOP |
                                 wx.ICON_EXCLAMATION )
        self.SetFont(wx.Font(16, wx.DEFAULT, wx.NORMAL, wx.NORMAL))
        self.Refresh()

wx.MessageDialog is not a real wx.Dialog, it is just a wrapper around a system API function. So SetFont will have no effect on it at all.

···

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