Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lessonscreen.py
diff options
context:
space:
mode:
authorWade Brainerd <wadetb@gmail.com>2009-01-30 03:42:16 (GMT)
committer Wade Brainerd <wadetb@gmail.com>2009-01-30 03:42:16 (GMT)
commite32707f55e3614368e0498137b30a274194dd443 (patch)
tree953f8e7684d17e63d6167557ac107535d5b8e52f /lessonscreen.py
parent8c6509d046036a7db2be1e83ab7e591c1a02de0b (diff)
Typo in last commit. Non working attempt at space between lesson lines.
Diffstat (limited to 'lessonscreen.py')
-rw-r--r--lessonscreen.py8
1 files changed, 8 insertions, 0 deletions
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')