mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fixed bug
This commit is contained in:
parent
394b86c3cc
commit
df64545cf7
@ -409,6 +409,9 @@ class DirectScrolledList(DirectFrame):
|
|||||||
|
|
||||||
def getSelectedText(self):
|
def getSelectedText(self):
|
||||||
assert self.notify.debugStateCall(self)
|
assert self.notify.debugStateCall(self)
|
||||||
|
if self['items'][self.index].__class__.__name__ == 'str':
|
||||||
|
return self['items'][self.index]
|
||||||
|
else:
|
||||||
return self['items'][self.index]['text']
|
return self['items'][self.index]['text']
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user