diff options
author | Wade Brainerd <wadetb@gmail.com> | 2009-01-30 03:42:16 (GMT) |
---|---|---|
committer | Wade Brainerd <wadetb@gmail.com> | 2009-01-30 03:42:16 (GMT) |
commit | e32707f55e3614368e0498137b30a274194dd443 (patch) | |
tree | 953f8e7684d17e63d6167557ac107535d5b8e52f | |
parent | 8c6509d046036a7db2be1e83ab7e591c1a02de0b (diff) |
Typo in last commit. Non working attempt at space between lesson lines.
-rw-r--r-- | balloongame.py | 2 | ||||
-rw-r--r-- | lessonscreen.py | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/balloongame.py b/balloongame.py index d714cb7..3dcf793 100644 --- a/balloongame.py +++ b/balloongame.py @@ -160,7 +160,7 @@ class BalloonGame(gtk.VBox): self.update_balloon(b) self.spawn_delay -= 1 - if if self.count_left >= 0 && self.spawn_delay <= 0: + if self.count_left >= 0 and self.spawn_delay <= 0: self.count += 1 self.count_left -= 1 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') |