def _create_header(self): header_panel = wx.Panel(self, wx.ID_ANY) header = Label(header_panel, wx.ID_ANY, "Installed Plugins") if wx.VERSION >= (4, 0, 0, ''): # DEBUG wxPhoenix header.SetFont( wx.Font(wx.FontInfo(14).Family(wx.FONTFAMILY_SWISS).Bold())) else: header.SetFont(wx.Font(14, wx.SWISS, wx.NORMAL, wx.BOLD)) return header
def _create_label(self, parent, text): if wx.VERSION >= (3, 0, 2, 0, ''): boldFont = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT) else: boldFont = wx.SystemSettings_GetFont(wx.SYS_DEFAULT_GUI_FONT) boldFont.SetWeight(wx.FONTWEIGHT_BOLD) label = Label(parent, wx.ID_ANY, text) label.SetFont(boldFont) return label
def _create_header(self): header_panel = wx.Panel(self, wx.ID_ANY) header = Label(header_panel, wx.ID_ANY, "Installed Plugins") header.SetFont( wx.Font(wx.FontInfo(14).Family(wx.FONTFAMILY_SWISS).Bold())) return header
def _create_header(self): header_panel = wx.Panel(self, wx.ID_ANY) header = Label(header_panel, wx.ID_ANY, "Installed Plugins") header.SetFont(wx.Font(14, wx.SWISS, wx.NORMAL, wx.BOLD)) return header