WIP memory editor
This commit is contained in:
@@ -15,14 +15,9 @@ class Entry(ABC):
|
||||
Args:
|
||||
id: Unique identifier for this entry
|
||||
"""
|
||||
self._id = id
|
||||
self.id = id
|
||||
self._change_handlers: List[Callable[['Entry'], None]] = []
|
||||
|
||||
@property
|
||||
def id(self) -> str:
|
||||
"""Get entry's unique identifier."""
|
||||
return self._id
|
||||
|
||||
def add_change_handler(self, handler: Callable[['Entry'], None]) -> None:
|
||||
"""Add a callback for entry changes."""
|
||||
if handler not in self._change_handlers:
|
||||
|
||||
Reference in New Issue
Block a user