changeset 254:1546c423b467

Fix bugs introduced in "SubClient created, keyboardcomposer and gyrocontroller use it now"
author David McClosky <dmcc@bigasterisk.com>
date Wed, 15 Jun 2005 09:00:27 +0000
parents a92b6d1ac072
children 6f6d9235e8a0
files bin/gyrocontroller light9/subclient.py
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/bin/gyrocontroller	Wed Jun 15 04:28:16 2005 +0000
+++ b/bin/gyrocontroller	Wed Jun 15 09:00:27 2005 +0000
@@ -2,7 +2,7 @@
 # vi: syntax=python
 
 import run_local
-from light9.Submaster import combine_subdict
+from light9.Submaster import Submasters, combine_subdict
 from light9.subclient import SubClient
 
 class circcycle:
@@ -19,11 +19,11 @@
         self.index = (self.index + delta) % len(self.sequence)
     def next(self):
         ret = self.sequence[self.index]
-        self._change_index(1)
+        self.change_index(1)
         return ret
     def prev(self):
         ret = self.sequence[self.index]
-        self._change_index(-1)
+        self.change_index(-1)
         return ret
 
 class AbstractSimpleController(SubClient):
--- a/light9/subclient.py	Wed Jun 15 04:28:16 2005 +0000
+++ b/light9/subclient.py	Wed Jun 15 09:00:27 2005 +0000
@@ -2,6 +2,8 @@
 
 # later, this stuff will talk to a SubServer
 class SubClient:
+    def __init__(self):
+        pass # we may later need init code for network setup
     def get_levels_as_sub(self):
         """Subclasses must implement this method and return a Submaster
         object."""