mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fixed bug
This commit is contained in:
parent
394b86c3cc
commit
df64545cf7
@ -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']
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user