diff options
author | Ignacio Rodríguez <ignaciorodriguez@sugarlabs.org> | 2013-05-24 23:57:24 (GMT) |
---|---|---|
committer | Ignacio Rodríguez <ignaciorodriguez@sugarlabs.org> | 2013-05-24 23:57:24 (GMT) |
commit | a3f8b7d262240557d1973ed105b0d46a71fa9590 (patch) | |
tree | a4169574cf1446c3841175ce4bafb640e5737429 | |
parent | d92503d05b6bffd9aab13d72341217c2d630a896 (diff) |
Ahora la introspección funciona en cualquier parte del código.
-rw-r--r-- | WorkPanel.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/WorkPanel.py b/WorkPanel.py index 19475a1..e74c915 100644 --- a/WorkPanel.py +++ b/WorkPanel.py @@ -111,8 +111,7 @@ class Notebook_SourceView(Gtk.Notebook): view = viewport.get_children()[0] buffer = view.get_buffer() - cursor_mark = buffer.get_insert() - start = buffer.get_iter_at_mark(cursor_mark) + start = buffer.get_start_iter() end = buffer.get_end_iter() if start.get_offset() == buffer.get_char_count(): @@ -126,12 +125,6 @@ class Notebook_SourceView(Gtk.Notebook): buffer.select_range(match_start, match_end) view.scroll_to_iter(match_end, 0.1, 1, 1, 1) - else: - try: - self.set_linea(texto) - - except RuntimeError: - pass def __switch_page(self, widget, widget_child, indice): """ |