Implement a set of modifications to allow attributeDisplay to directly

query attributes, this is always slower then using the normal method
except for the marketBrowser.
This commit is contained in:
cncfanatics
2010-12-06 09:47:30 +01:00
parent a5e0059a4f
commit 570c5a9a0c
5 changed files with 40 additions and 8 deletions

View File

@@ -46,8 +46,9 @@ class Display(wx.ListCtrl):
for x, param in enumerate(paramList):
name, type, defaultValue = param
value = params[x] if len(params) > x else defaultValue
if type == bool:
value = bool(value) if value != "False" else False
value = value if value != "" else defaultValue
if type == bool and isinstance(value, basestring):
value = bool(value) if value.lower() != "false" and value != "0" else False
paramDict[name] = value
col = colClass(self, paramDict)
else: