mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
pamhyr: Add saved status in model.
This commit is contained in:
1 parent
b786bb44e2
commit
d328806916
21 files changed
+215
-54
No files matched your search
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user