diff -r cdc6393705ce -r 6f0e10085df9 c_ext/CFileEditor.py --- a/c_ext/CFileEditor.py Mon Jun 25 20:05:29 2012 +0200 +++ b/c_ext/CFileEditor.py Thu Jun 28 12:07:21 2012 +0200 @@ -4,10 +4,10 @@ import wx.grid import wx.stc as stc import wx.lib.buttons -from util.misc import opjimg from controls import CustomGrid, CustomTable from ConfTreeNodeEditor import ConfTreeNodeEditor +from utils.BitmapLibrary import GetBitmap if wx.Platform == '__WXMSW__': faces = { 'times': 'Times New Roman', @@ -790,10 +790,10 @@ for idx, (name, panel_class) in enumerate(CFILE_PARTS): button_id = wx.NewId() button = FoldPanelCaption(id=button_id, name='FoldPanelCaption_%s' % name, - label=name, bitmap=wx.Bitmap(opjimg("CollapsedIconData")), + label=name, bitmap=GetBitmap("CollapsedIconData"), parent=self.ConfNodeEditor, pos=wx.Point(0, 0), size=wx.Size(0, 20), style=wx.NO_BORDER|wx.ALIGN_LEFT) - button.SetBitmapSelected(wx.Bitmap(opjimg("ExpandedIconData"))) + button.SetBitmapSelected(GetBitmap("ExpandedIconData")) button.Bind(wx.EVT_BUTTON, self.GenPanelButtonCallback(name), id=button_id) self.MainSizer.AddWindow(button, 0, border=0, flag=wx.TOP|wx.GROW)