From e32707f55e3614368e0498137b30a274194dd443 Mon Sep 17 00:00:00 2001 From: Wade Brainerd Date: Fri, 30 Jan 2009 03:42:16 +0000 Subject: Typo in last commit. Non working attempt at space between lesson lines. --- (limited to 'lessonscreen.py') diff --git a/lessonscreen.py b/lessonscreen.py index 18c0737..6c032cc 100644 --- a/lessonscreen.py +++ b/lessonscreen.py @@ -87,6 +87,10 @@ class LessonScreen(gtk.VBox): text_tag.props.size = 9000 self.tagtable.add(text_tag) + spacer_tag = gtk.TextTag('spacer') + spacer_tag.props.size = 10 + self.tagtable.add(spacer_tag) + image_tag = gtk.TextTag('image') image_tag.props.justification = gtk.JUSTIFY_CENTER self.tagtable.add(image_tag) @@ -311,6 +315,10 @@ class LessonScreen(gtk.VBox): self.line_marks = {} line_idx = 0 for l in self.lines: + # Add a little space between lines. Not working atm. + #self.lessonbuffer.insert_with_tags_by_name( + # self.lessonbuffer.get_end_iter(), '\n', 'spacer') + # Add the text to copy. self.lessonbuffer.insert_with_tags_by_name( self.lessonbuffer.get_end_iter(), '\n' + l.encode('utf-8') + '\n', 'text') -- cgit v0.9.1