-
- if "__WXGTK__" in wx.PlatformInfo:
- # For GTK it seems that we must do this steps in order
- # for the tabs will get the proper height on initialization
- # on MSW, preforming these steps yields wierd results
- normalFont = wx.SystemSettings_GetFont(wx.SYS_DEFAULT_GUI_FONT)
- boldFont = wx.SystemSettings_GetFont(wx.SYS_DEFAULT_GUI_FONT)
- boldFont.SetWeight(wx.FONTWEIGHT_BOLD)
- dc.SetFont(boldFont)
-
- width, height = dc.GetTextExtent("Tp")
+ font = self.GetFont()
+ font.SetWeight(wx.FONTWEIGHT_BOLD)
+ dc.SetFont(font)
+ height = dc.GetCharHeight()
+ ##print height, font.Ok()