From afb4e40e4be2ab627728ebec394b7cd15bf32499 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Fri, 3 Dec 2010 14:19:32 +0200 Subject: [PATCH] Add/delete bitmap buttons in CharacterEditor/Implants view uses now famfamfam icons --- gui/characterEditor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gui/characterEditor.py b/gui/characterEditor.py index d80a7ca6a..f10ddfbf9 100644 --- a/gui/characterEditor.py +++ b/gui/characterEditor.py @@ -26,6 +26,7 @@ from gui import bitmapLoader import service import gui.display as d from gui.contextMenu import ContextMenu +from wx.lib.buttons import GenBitmapButton import sys import gui.globalEvents as GE @@ -397,9 +398,9 @@ class ImplantsTreeView (wx.Panel): buttonSizer = wx.BoxSizer(wx.VERTICAL) pmainSizer.Add(buttonSizer, 0, wx.TOP, 5) - self.btnAdd = wx.BitmapButton(self, wx.ID_ADD, bitmapLoader.getBitmap("add_small", "icons")) + self.btnAdd = GenBitmapButton(self, wx.ID_ADD, bitmapLoader.getBitmap("fit_add_small", "icons"), style = wx.BORDER_NONE) buttonSizer.Add(self.btnAdd, 0) - self.btnRemove = wx.BitmapButton(self, wx.ID_REMOVE, wx.ArtProvider_GetBitmap(wx.ART_DELETE)) + self.btnRemove = GenBitmapButton(self, wx.ID_REMOVE, bitmapLoader.getBitmap("fit_delete_small", "icons"), style = wx.BORDER_NONE) buttonSizer.Add(self.btnRemove, 0) self.pluggedImplantsTree = AvailableImplantsView(self, style=wx.LC_SINGLE_SEL)