Bug fix in ActionPresenter.
This commit is contained in:
@@ -152,11 +152,15 @@ class ActionPresenter:
|
|||||||
"""Provides a list for performing accessible actions on an object."""
|
"""Provides a list for performing accessible actions on an object."""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._handlers = self.get_handlers(True)
|
self._handlers = None
|
||||||
self._bindings = keybindings.KeyBindings()
|
self._bindings = None
|
||||||
self._gui = None
|
self._gui = None
|
||||||
self._obj = None
|
self._obj = None
|
||||||
self._window = None
|
self._window = None
|
||||||
|
|
||||||
|
# Initialize handlers and bindings
|
||||||
|
self._handlers = self.get_handlers(True)
|
||||||
|
self._bindings = keybindings.KeyBindings()
|
||||||
|
|
||||||
def get_handlers(self, refresh: bool = False) -> dict:
|
def get_handlers(self, refresh: bool = False) -> dict:
|
||||||
"""Returns a dictionary of input event handlers."""
|
"""Returns a dictionary of input event handlers."""
|
||||||
|
Reference in New Issue
Block a user