Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgnacio Rodríguez <ignaciorodriguez@sugarlabs.org>2013-05-16 19:51:27 (GMT)
committer Ignacio Rodríguez <ignaciorodriguez@sugarlabs.org>2013-05-16 19:51:27 (GMT)
commit571ef1571ea5ee3872045125a19d15bd713d5d66 (patch)
tree13bd48a7512b12e4951f9c4d9e2d2affa68b9012
parent844080b5827a597ae4237cfc110e049927af59c6 (diff)
Correciones finales.
Signed-off-by: Ignacio Rodríguez <ignaciorodriguez@sugarlabs.org>
-rw-r--r--WorkPanel.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/WorkPanel.py b/WorkPanel.py
index af7d3bc..05cd4dc 100644
--- a/WorkPanel.py
+++ b/WorkPanel.py
@@ -320,7 +320,15 @@ class AutoCompletado(GObject.Object, GtkSource.CompletionProvider):
else:
linea = ''
- dato1 = linea[len(linea)-2:len(linea)]
+ if texto:
+ pass
+ else:
+ return
+
+ if len(texto) >= 2:
+ dato1 = linea[len(linea)-2:len(linea)]
+ else:
+ dato1 = "Ningun modulo"
try:
dat = linea.find(self.nombre_modulo)
@@ -395,4 +403,4 @@ class AutoCompletado(GObject.Object, GtkSource.CompletionProvider):
modulo = modulo.replace(".typelib", "")
modulo = modulo.rpartition("-")
modulos_nuevos.append(modulo[0])
- return modulos_nuevos \ No newline at end of file
+ return modulos_nuevos