def __init__(self): RibbonMSWArtProvider.__init__(self) if wx.Platform == "__WXMAC__": if hasattr(wx, 'MacThemeColour'): base_colour = wx.MacThemeColour(Carbon.Appearance.kThemeBrushToolbarBackground) else: brush = wx.Brush(wx.BLACK) brush.MacSetTheme(Carbon.Appearance.kThemeBrushToolbarBackground) base_colour = brush.GetColour() else: base_colour = wx.SystemSettings.GetColour(wx.SYS_COLOUR_3DFACE) self.SetColourScheme(base_colour, wx.SystemSettings.GetColour(wx.SYS_COLOUR_HIGHLIGHT), wx.SystemSettings.GetColour(wx.SYS_COLOUR_HIGHLIGHTTEXT)) self._tab_active_label_font = FontFromFont(self._tab_label_font) self._tab_active_label_font.SetWeight(wx.FONTWEIGHT_BOLD) self._page_border_left = 1 self._page_border_right = 1 self._page_border_top = 1 self._page_border_bottom = 2 self._tab_separation_size = 0 self._gallery_bitmap_padding_left_size = 3 self._gallery_bitmap_padding_right_size = 3 self._gallery_bitmap_padding_top_size = 3 self._gallery_bitmap_padding_bottom_size = 3
def __init__(self): RibbonMSWArtProvider.__init__(self) if wx.Platform == "__WXMAC__": if hasattr(wx, 'MacThemeColour'): base_colour = wx.MacThemeColour( Carbon.Appearance.kThemeBrushToolbarBackground) else: brush = wx.Brush(wx.BLACK) brush.MacSetTheme( Carbon.Appearance.kThemeBrushToolbarBackground) base_colour = brush.GetColour() else: base_colour = wx.SystemSettings.GetColour(wx.SYS_COLOUR_3DFACE) self.SetColourScheme( base_colour, wx.SystemSettings.GetColour(wx.SYS_COLOUR_HIGHLIGHT), wx.SystemSettings.GetColour(wx.SYS_COLOUR_HIGHLIGHTTEXT)) self._tab_active_label_font = FontFromFont(self._tab_label_font) self._tab_active_label_font.SetWeight(wx.FONTWEIGHT_BOLD) self._page_border_left = 1 self._page_border_right = 1 self._page_border_top = 1 self._page_border_bottom = 2 self._tab_separation_size = 0 self._gallery_bitmap_padding_left_size = 3 self._gallery_bitmap_padding_right_size = 3 self._gallery_bitmap_padding_top_size = 3 self._gallery_bitmap_padding_bottom_size = 3
def __init__(self, set_colour_scheme=True): RibbonMSWArtProvider.__init__(self, set_colour_scheme)