mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
added getSelectedIndex, getSelectedText
This commit is contained in:
parent
11d3460047
commit
7759f7b212
@ -204,3 +204,9 @@ class DirectScrolledList(DirectFrame):
|
||||
self.recordMaxHeight()
|
||||
self.scrollTo(self.index)
|
||||
|
||||
def getSelectedIndex(self):
|
||||
return self.index
|
||||
|
||||
def getSelectedText(self):
|
||||
return self['items'][self.index]['text']
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user