K
Kless
I've to write properties for several keywords with the same code, it
only changes the name of each property:
-----------------------------
@property
def foo(self):
return self._foo
@foo.setter
def foo(self, txt):
self._foo = self._any_function(txt)
# ----------------
@property
def bar(self):
return self._bar
@bar.setter
def bar(self, txt):
self._bar = self._any_function(txt)
only changes the name of each property:
-----------------------------
@property
def foo(self):
return self._foo
@foo.setter
def foo(self, txt):
self._foo = self._any_function(txt)
# ----------------
@property
def bar(self):
return self._bar
@bar.setter
def bar(self, txt):
self._bar = self._any_function(txt)