mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
Fix DirectScrolledList regression
This commit is contained in:
parent
81dd4d97ad
commit
d43f0ef909
@ -20,7 +20,7 @@ class DirectScrolledListItem(DirectButton):
|
|||||||
|
|
||||||
def __init__(self, parent=None, **kw):
|
def __init__(self, parent=None, **kw):
|
||||||
assert self.notify.debugStateCall(self)
|
assert self.notify.debugStateCall(self)
|
||||||
self.parent = parent
|
self._parent = parent
|
||||||
if "command" in kw:
|
if "command" in kw:
|
||||||
self.nextCommand = kw.get("command")
|
self.nextCommand = kw.get("command")
|
||||||
del kw["command"]
|
del kw["command"]
|
||||||
@ -28,7 +28,7 @@ class DirectScrolledListItem(DirectButton):
|
|||||||
self.nextCommandExtraArgs = kw.get("extraArgs")
|
self.nextCommandExtraArgs = kw.get("extraArgs")
|
||||||
del kw["extraArgs"]
|
del kw["extraArgs"]
|
||||||
optiondefs = (
|
optiondefs = (
|
||||||
('parent', self.parent, None),
|
('parent', self._parent, None),
|
||||||
('command', self.select, None),
|
('command', self.select, None),
|
||||||
)
|
)
|
||||||
# Merge keyword options with default options
|
# Merge keyword options with default options
|
||||||
@ -39,7 +39,7 @@ class DirectScrolledListItem(DirectButton):
|
|||||||
def select(self):
|
def select(self):
|
||||||
assert self.notify.debugStateCall(self)
|
assert self.notify.debugStateCall(self)
|
||||||
self.nextCommand(*self.nextCommandExtraArgs)
|
self.nextCommand(*self.nextCommandExtraArgs)
|
||||||
self.parent.selectListItem(self)
|
self._parent.selectListItem(self)
|
||||||
|
|
||||||
|
|
||||||
class DirectScrolledList(DirectFrame):
|
class DirectScrolledList(DirectFrame):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user