diff --git a/src/dynamic_graph/entity.py b/src/dynamic_graph/entity.py index eb0a0ee7f1c7df1a3d0b22d679c7cf2e5200f671..57629e6f9d9538205fe312e4e68fb058280ccd83 100644 --- a/src/dynamic_graph/entity.py +++ b/src/dynamic_graph/entity.py @@ -5,7 +5,7 @@ """ import wrap, signal_base -class Entity: +class Entity (object) : """ This class binds dynamicgraph::Entity C++ class """ diff --git a/src/dynamic_graph/signal_base.py b/src/dynamic_graph/signal_base.py index a2454c8243981b325a34e9db36df76b3b7d77304..83f6b46c10d05a14b9ff2bd49e7094915992cf3e 100644 --- a/src/dynamic_graph/signal_base.py +++ b/src/dynamic_graph/signal_base.py @@ -5,7 +5,7 @@ """ import wrap -class SignalBase: +class SignalBase (object) : """ This class binds dynamicgraph::SignalBase<int> C++ class """ @@ -29,13 +29,15 @@ class SignalBase: """ return wrap.signalBaseGetTime(self.object) - def get_value(self) : + @property + def value(self) : """ Read the value of a signal """ return wrap.signal_base_get_value(self.object) - def set_value(self, val) : + @value.setter + def value(self, val) : """ Set the signal as a constant signal with given value. If the signal is plugged, it will be unplugged