summaryrefslogtreecommitdiff
path: root/host/simu
diff options
context:
space:
mode:
authorNicolas Schodet2013-03-23 09:08:43 +0100
committerNicolas Schodet2013-03-23 13:03:02 +0100
commitc0c56cdd5ba5d38ebe1b866aeb619fbf997d6462 (patch)
tree793b3f5b7a2afce893c7d729de99fe25e9e9006b /host/simu
parent07449ddde83aee33cf4f5aade2bc7b6e0387e6f8 (diff)
host/simu/inter: pass tick frequency as parameter
Diffstat (limited to 'host/simu')
-rw-r--r--host/simu/inter/inter_node.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/simu/inter/inter_node.py b/host/simu/inter/inter_node.py
index 1c6b653a..4f7699a7 100644
--- a/host/simu/inter/inter_node.py
+++ b/host/simu/inter/inter_node.py
@@ -29,11 +29,11 @@ import time
class InterNode (Inter):
- def __init__ (self):
+ def __init__ (self, tick):
Inter.__init__ (self)
# Create node and bind to Tk.
self.node = Node ()
- self.node.tick = 900 # tick/s
+ self.node.tick = tick # tick/s
self.tk.createfilehandler (self.node, READABLE, self.read)
# Animation attributes.
self.date = 0