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-11 16:19:51 (GMT)
committer Ignacio Rodríguez <ignaciorodriguez@sugarlabs.org>2013-05-11 16:19:51 (GMT)
commit1da20b4fbcad605f2caebc29871932d9e4390ca4 (patch)
tree34b60ae144dad1d3c323c053f742768137e6caa2
parente3efc2425ab274b1aa55ef589fdb2d9ed50a5324 (diff)
Removida la columna de posición y cambiado el color de el import.
Signed-off-by: Ignacio Rodríguez <ignaciorodriguez@sugarlabs.org>
-rw-r--r--InfoNotebook.py22
1 files changed, 10 insertions, 12 deletions
diff --git a/InfoNotebook.py b/InfoNotebook.py
index e38e483..a4389a7 100644
--- a/InfoNotebook.py
+++ b/InfoNotebook.py
@@ -90,7 +90,7 @@ class Introspeccion(Gtk.TreeView):
Gtk.TreeView.__init__(self,
Gtk.TreeStore(GObject.TYPE_STRING,
- GObject.TYPE_INT, Gdk.Color))
+ Gdk.Color))
self.__set_columnas()
self.show_all()
@@ -116,16 +116,18 @@ class Introspeccion(Gtk.TreeView):
for dato in datos:
if dato.startswith("import ") or dato.startswith("from ") or dato.startswith("def "):
+ if dato.startswith("import ") or dato.startswith("from "):
+ color = Gdk.color_parse("dark green")
+ else:
+ color = Gdk.color_parse("#FF0D00")
modelo.append(
None, [dato,
- posiciones[actual],
- Gdk.color_parse("#FF0D00")])
+ color])
if dato.startswith("class "):
self.iteractual = modelo.append(
None, [dato,
- posiciones[actual],
Gdk.color_parse("purple")])
if dato[0:13] == "-Tabulacion- " and dato[14] != "T":
@@ -134,7 +136,6 @@ class Introspeccion(Gtk.TreeView):
self.ultimodef = modelo.append(
self.iteractual, [nuevodato,
- posiciones[actual],
Gdk.color_parse("#FF0D00")])
if dato[0:26] == "-Tabulacion- -Tabulacion- ":
@@ -143,7 +144,6 @@ class Introspeccion(Gtk.TreeView):
self.ultimodef = modelo.append(
self.ultimodef, [nuevodato,
- posiciones[actual],
Gdk.color_parse("#FF0D00")])
actual += 1
@@ -183,13 +183,11 @@ class Introspeccion(Gtk.TreeView):
"""
render = Gtk.CellRendererText()
- columna1 = Gtk.TreeViewColumn('Datos', render , text=0)
- columna2 = Gtk.TreeViewColumn('Posición', Gtk.CellRendererText(), text=1)
- columna2.set_property("visible", False)
-
- columna1.add_attribute(render, 'foreground-gdk', 2)
+ columna1 = Gtk.TreeViewColumn('Datos', render, text=0)
+ columna1.add_attribute(render, 'foreground-gdk', 1)
+
self.append_column(columna1)
- self.append_column(columna2)
+
class Estructura_Proyecto(Gtk.TreeView):
"""