pamhyr: Add saved status in model.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-05-15 11:37:53 +02:00
1 parent b786bb44e2
commit d328806916
21 files changed
+215 -54

No files matched your search

+4 -1
View File
@@ -3,9 +3,11 @@
from Model.Except import NotImplementedMethodeError
class Point(object):
def __init__(self, name:str = ""):
def __init__(self, name:str = "", status = None):
super(Point, self).__init__()
self._status = status
self._name = name
@property
@@ -15,6 +17,7 @@ class Point(object):
@name.setter
def name(self, name):
self._name = name
self._status.modified()
def point_is_named(self):
"""