]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxFileHistory.py
Some little additions to how wxBufferedDC is wrapped.
[wxWidgets.git] / wxPython / demo / wxFileHistory.py
index bb90041bf789ab036d6cd739f3e463c4edda6bcd..9e0725705a7f22fd3b8bf61e6c7579c5afcfd40a 100644 (file)
@@ -21,8 +21,9 @@ class TestPanel(wxPanel):
         box = wxBoxSizer(wxVERTICAL)
 
         # Make and layout the controls
-        bf = wxFont(14, wxSWISS, wxNORMAL, wxBOLD)
-        nf = wxFont(11, wxSWISS, wxNORMAL, wxNORMAL)
+        fs = self.GetFont().GetPointSize()
+        bf = wxFont(fs+4, wxSWISS, wxNORMAL, wxBOLD)
+        nf = wxFont(fs+2, wxSWISS, wxNORMAL, wxNORMAL)
 
         t = wxStaticText(self, -1, "wxFileHistory")
         t.SetFont(bf)