Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Cetrulo <mail2samus@gmail.com>2012-06-16 17:04:31 (GMT)
committer Michael Cetrulo <mail2samus@gmail.com>2012-06-16 17:05:46 (GMT)
commit482cea10aca98f5703138e94f524b35a1086e93c (patch)
tree983be488cc3a935ffa8cf18cba0cca30bef3cbd8
parentf2a8cf1da1ddc42899bbabdeb4a1a9f43b9bba02 (diff)
evito "import *"
-rwxr-xr-xLegoJAM.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/LegoJAM.py b/LegoJAM.py
index 8f06f5a..3eafdbc 100755
--- a/LegoJAM.py
+++ b/LegoJAM.py
@@ -12,7 +12,7 @@ sys.path.append("nxt_plugin")
# Import the API functions
# Importamos las funciones de la API
import nxt
-from nxt import *
+from nxt import Motor
from interface.window import Window
@@ -115,9 +115,9 @@ class Pancho():
except:
print "El Robot se Encuentra Desconectado o Apagado"
sys.exit(0)
- self.motorA = Mimotor("A", self.robot, PORT_A)
- self.motorB = Mimotor("B", self.robot, PORT_B)
- self.motorC = Mimotor("C", self.robot, PORT_C)
+ self.motorA = Mimotor("A", self.robot, nxt.PORT_A)
+ self.motorB = Mimotor("B", self.robot, nxt.PORT_B)
+ self.motorC = Mimotor("C", self.robot, nxt.PORT_C)
def run_motor(self, motor):
if motor == "A":