fixed bug

This commit is contained in:
rdb 2008-07-04 08:43:49 +00:00
parent 394b86c3cc
commit df64545cf7

View File

@ -409,7 +409,10 @@ class DirectScrolledList(DirectFrame):
def getSelectedText(self):
assert self.notify.debugStateCall(self)
return self['items'][self.index]['text']
if self['items'][self.index].__class__.__name__ == 'str':
return self['items'][self.index]
else:
return self['items'][self.index]['text']