TypeError: scroll_to_mark() takes exactly 6 arguments (3 given)

svn: r20688
This commit is contained in:
Jérôme Rapinat 2012-11-21 14:18:37 +00:00
parent ee2f5a990d
commit 0710324b05

View File

@ -836,14 +836,14 @@ class ToolManagedWindowBase(ManagedWindow):
def results_write(self, text):
buffer = self.results_text.get_buffer()
mark = buffer.create_mark("end", buffer.get_end_iter())
self.results_text.scroll_to_mark(mark, 0)
self.results_text.scroll_to_mark(mark, 0.0, True, 0, 0)
buffer.insert_at_cursor(text)
buffer.delete_mark_by_name("end")
def write_to_page(self, page, text):
buffer = page.get_buffer()
mark = buffer.create_mark("end", buffer.get_end_iter())
self.results_text.scroll_to_mark(mark, 0)
self.results_text.scroll_to_mark(mark, 0.0, True, 0, 0)
buffer.insert_at_cursor(text)
buffer.delete_mark_by_name("end")