summaryrefslogtreecommitdiffhomepage
path: root/host/simu/view
diff options
context:
space:
mode:
authorNicolas Schodet2009-10-11 20:16:31 +0200
committerNicolas Schodet2009-10-11 20:16:31 +0200
commit48e509336acdda1bb0a449c00bc7a8918fb9df85 (patch)
treed2be6c8708f8f34a4b1aca7f1cd84a550b669657 /host/simu/view
parent4160b0ebb6fffd8dba558ce66ba83e71a09614c1 (diff)
host, digital/io/tools, digital/asserv/tools: notify observers on register
Diffstat (limited to 'host/simu/view')
-rw-r--r--host/simu/view/distance_sensor.py1
-rw-r--r--host/simu/view/path.py1
-rw-r--r--host/simu/view/round_obstacle.py1
-rw-r--r--host/simu/view/servo.py1
-rw-r--r--host/simu/view/table_eurobot2009.py1
5 files changed, 0 insertions, 5 deletions
diff --git a/host/simu/view/distance_sensor.py b/host/simu/view/distance_sensor.py
index 3fa7dbac..41cde7ef 100644
--- a/host/simu/view/distance_sensor.py
+++ b/host/simu/view/distance_sensor.py
@@ -31,7 +31,6 @@ class DistanceSensor (Drawable):
Drawable.__init__ (self, onto)
self.model = model
self.model.register (self.__notified)
- self.__notified ()
def __notified (self):
self.distance = self.model.distance
diff --git a/host/simu/view/path.py b/host/simu/view/path.py
index aba39d93..d9582fdc 100644
--- a/host/simu/view/path.py
+++ b/host/simu/view/path.py
@@ -30,7 +30,6 @@ class Path (Drawable):
Drawable.__init__ (self, onto)
self.model = model
self.model.register (self.__notified)
- self.__notified ()
def __notified (self):
self.path = self.model.path
diff --git a/host/simu/view/round_obstacle.py b/host/simu/view/round_obstacle.py
index 3e218029..9dba82a1 100644
--- a/host/simu/view/round_obstacle.py
+++ b/host/simu/view/round_obstacle.py
@@ -32,7 +32,6 @@ class RoundObstacle (Drawable):
Drawable.__init__ (self, onto)
self.model = model
self.model.register (self.__notified)
- self.__notified ()
def __notified (self):
self.pos = self.model.pos
diff --git a/host/simu/view/servo.py b/host/simu/view/servo.py
index 7c67df09..fc84293e 100644
--- a/host/simu/view/servo.py
+++ b/host/simu/view/servo.py
@@ -36,7 +36,6 @@ class Servo (Drawable):
self.start = start
self.extent = extent
self.model.register (self.__notified)
- self.__notified ()
def __notified (self):
self.value = self.model.value
diff --git a/host/simu/view/table_eurobot2009.py b/host/simu/view/table_eurobot2009.py
index 37d4ce16..5e2d6db5 100644
--- a/host/simu/view/table_eurobot2009.py
+++ b/host/simu/view/table_eurobot2009.py
@@ -43,7 +43,6 @@ class Puck (Drawable):
self.attr = attr
self.model = model
self.model.register (self.__notified)
- self.__notified ()
def __notified (self):
self.pos = self.model.pos