diff options
author | Ignacio ROdríguez <ignaciorodriguez@sugarlabs.org> | 2013-05-13 22:57:57 (GMT) |
---|---|---|
committer | Ignacio ROdríguez <ignaciorodriguez@sugarlabs.org> | 2013-05-13 22:57:57 (GMT) |
commit | bebcc1a27d46358f584cb5d0af8ff3180c96a707 (patch) | |
tree | 39c896fd8034cf761304248d5bb619e7964d0fc1 | |
parent | 556d98b2520b25c3afbc34599e4d235c87800e8a (diff) |
Muestra el nombre del módulo en el autocompletado.
-rw-r--r-- | WorkPanel.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/WorkPanel.py b/WorkPanel.py index e0b6e27..9c41329 100644 --- a/WorkPanel.py +++ b/WorkPanel.py @@ -245,12 +245,13 @@ class AutoCompletado(GObject.Object, GtkSource.CompletionProvider): GObject.Object.__init__(self) self.modulo = None + self.nombre_modulo = None self.priority = 1 self.buffer = buffer def do_get_name(self): - return "Nombre del módulo" + return self.nombre_modulo def do_populate(self, context): inicio = self.buffer.get_start_iter() @@ -267,9 +268,10 @@ class AutoCompletado(GObject.Object, GtkSource.CompletionProvider): if ' ' in texto: palabras = texto.split(' ') modulo = palabras[-1].replace('.', '') - + self.nombre_modulo = modulo else: modulo = texto.replace('.', '') + self.nombre_modulo = modulo try: mod = __import__("gi.repository.%s" % modulo) |