Change to use BitmapLoader class
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import wx
|
||||
import copy
|
||||
from gui import bitmapLoader
|
||||
from gui.bitmapLoader import BitmapLoader
|
||||
import gui.mainFrame
|
||||
from gui.PFListPane import PFListPane
|
||||
import service.fleet
|
||||
@@ -135,7 +135,7 @@ class FleetBrowserHeader (wx.Panel):
|
||||
wx.Panel.__init__ (self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.Size(500, 24), style=wx.TAB_TRAVERSAL)
|
||||
self.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_BTNFACE ) )
|
||||
|
||||
self.newBmp = bitmapLoader.getBitmap("fit_add_small","gui")
|
||||
self.newBmp = BitmapLoader.getBitmap("fit_add_small","gui")
|
||||
bmpSize = (16,16)
|
||||
|
||||
mainSizer = wx.BoxSizer(wx.HORIZONTAL)
|
||||
@@ -264,11 +264,11 @@ class FleetItem(SFItem.SFBrowserItem):
|
||||
self.fontNormal = wx.FontFromPixelSize((0,14),wx.SWISS, wx.NORMAL, wx.NORMAL, False)
|
||||
self.fontSmall = wx.FontFromPixelSize((0,12),wx.SWISS, wx.NORMAL, wx.NORMAL, False)
|
||||
|
||||
self.copyBmp = bitmapLoader.getBitmap("fit_add_small", "gui")
|
||||
self.renameBmp = bitmapLoader.getBitmap("fit_rename_small", "gui")
|
||||
self.deleteBmp = bitmapLoader.getBitmap("fit_delete_small","gui")
|
||||
self.acceptBmp = bitmapLoader.getBitmap("faccept_small", "gui")
|
||||
self.fleetBmp = bitmapLoader.getBitmap("fleet_item_big", "gui")
|
||||
self.copyBmp = BitmapLoader.getBitmap("fit_add_small", "gui")
|
||||
self.renameBmp = BitmapLoader.getBitmap("fit_rename_small", "gui")
|
||||
self.deleteBmp = BitmapLoader.getBitmap("fit_delete_small","gui")
|
||||
self.acceptBmp = BitmapLoader.getBitmap("faccept_small", "gui")
|
||||
self.fleetBmp = BitmapLoader.getBitmap("fleet_item_big", "gui")
|
||||
|
||||
fleetImg = self.fleetBmp.ConvertToImage()
|
||||
fleetImg = fleetImg.Blur(2)
|
||||
|
||||
Reference in New Issue
Block a user