Add a character editor menu entry. Change some stuff around

This commit is contained in:
cncfanatics
2010-08-12 17:49:49 +02:00
parent 263bb9ae7c
commit f7132e9385
5 changed files with 26 additions and 14 deletions

View File

@@ -21,8 +21,11 @@ import os.path
import config
import wx
def getBitmap(name, parent):
bitmap = wx.StaticBitmap(parent)
def getStaticBitmap(name, parent):
static = wx.StaticBitmap(parent)
static.SetBitmap(getBitmap(name))
return static
def getBitmap(name):
path = os.path.join(config.path, "icons", name + ".png")
bitmap.SetBitmap(wx.Image(path).ConvertToBitmap())
return bitmap
return wx.Image(path).ConvertToBitmap()