Remove a few stale variables.
Add a market class to the controller. Add a method in the Market controller to grab the market root. Display the market root in the market browser.
This commit is contained in:
@@ -26,6 +26,13 @@ def getStaticBitmap(name, parent, location):
|
||||
static.SetBitmap(getBitmap(name,location))
|
||||
return static
|
||||
|
||||
locationMap = {"pack": os.path.join(config.homePath, "icons")}
|
||||
def getBitmap(name,location):
|
||||
path = os.path.join(config.path, location, name + ".png")
|
||||
if location in locationMap:
|
||||
location = locationMap[location]
|
||||
path = os.path.join(location, "icon%s.png" % name)
|
||||
else:
|
||||
location = os.path.join(config.path, location)
|
||||
path = os.path.join(location, name + ".png")
|
||||
|
||||
return wx.Image(path).ConvertToBitmap()
|
||||
|
||||
Reference in New Issue
Block a user