Browse Source

fixed bug

rdb 17 years ago
parent
commit
df64545cf7
1 changed files with 4 additions and 1 deletions
  1. 4 1
      direct/src/gui/DirectScrolledList.py

+ 4 - 1
direct/src/gui/DirectScrolledList.py

@@ -409,7 +409,10 @@ class DirectScrolledList(DirectFrame):
 
 
     def getSelectedText(self):
     def getSelectedText(self):
         assert self.notify.debugStateCall(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']