isEmpty is now a property, not a method
This commit is contained in:
2
eos
2
eos
Submodule eos updated: 7bf91ab2a6...dc33bddaca
@@ -36,13 +36,13 @@ class ModuleNameOrSlot(ViewColumn):
|
||||
self.slotNameMap[id] = slot.lower()
|
||||
|
||||
def getText(self, mod):
|
||||
if mod.isEmpty():
|
||||
if mod.isEmpty:
|
||||
return "%s Slot" % self.slotNameMap[mod.slot].capitalize()
|
||||
else:
|
||||
return mod.item.name
|
||||
|
||||
def getImageId(self, mod):
|
||||
if mod.isEmpty():
|
||||
if mod.isEmpty:
|
||||
bitmap = bitmapLoader.getBitmap("slot_%s_small" % self.slotNameMap[mod.slot], "icons")
|
||||
iconId = self.fittingView.imageList.Add(bitmap)
|
||||
else:
|
||||
|
||||
@@ -40,7 +40,7 @@ class ModuleState(ViewColumn):
|
||||
return ""
|
||||
|
||||
def getImageId(self, mod):
|
||||
if mod.isEmpty():
|
||||
if mod.isEmpty:
|
||||
return -1
|
||||
else:
|
||||
bitmap = bitmapLoader.getBitmap("state_%s_small" % self.stateNameMap[mod.state], "icons")
|
||||
|
||||
Reference in New Issue
Block a user