Add icon for pyfa: 3D rendered rifter
This commit is contained in:
@@ -29,6 +29,11 @@ def getStaticBitmap(name, parent, location):
|
||||
locationMap = {"pack": os.path.join(config.homePath, "icons")}
|
||||
|
||||
def getBitmap(name,location):
|
||||
icon = getImage(name, location)
|
||||
if icon is not None:
|
||||
return icon.ConvertToBitmap()
|
||||
|
||||
def getImage(name, location):
|
||||
if location in locationMap:
|
||||
location = locationMap[location]
|
||||
path = os.path.join(location, "icon%s.png" % name)
|
||||
@@ -37,4 +42,4 @@ def getBitmap(name,location):
|
||||
path = os.path.join(location, name + ".png")
|
||||
|
||||
if os.path.exists(path):
|
||||
return wx.Image(path).ConvertToBitmap()
|
||||
return wx.Image(path)
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#===============================================================================
|
||||
|
||||
import wx
|
||||
from gui import bitmapLoader
|
||||
from gui.mainMenuBar import MainMenuBar
|
||||
from gui.mainToolBar import MainToolBar
|
||||
from gui.marketBrowser import MarketBrowser
|
||||
@@ -37,6 +38,9 @@ class MainFrame(wx.Frame):
|
||||
wx.Frame.__init__(self, None, wx.ID_ANY, title="pyfa - Python Fitting Assistant")
|
||||
MainFrame.__instance = self
|
||||
|
||||
i = wx.IconFromBitmap(bitmapLoader.getBitmap("pyfa", "icons"))
|
||||
self.SetIcon(i)
|
||||
|
||||
self.SetMinSize((1000, 700))
|
||||
self.SetSize((1000, 700))
|
||||
|
||||
|
||||
BIN
icons/pyfa.png
Normal file
BIN
icons/pyfa.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.9 KiB |
Reference in New Issue
Block a user