Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Main.py
diff options
context:
space:
mode:
Diffstat (limited to 'Main.py')
-rw-r--r--Main.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/Main.py b/Main.py
index ab4715a..be48034 100644
--- a/Main.py
+++ b/Main.py
@@ -119,13 +119,19 @@ class CartoonBuilder:
self.screen.draw()
def _frame_cb(self, widget, event, frame):
- Document.stamp(self.tape_selected, self.char.orig(frame))
- self.tape[self.tape_selected].child.set_from_pixbuf(
- self.char.thumb(frame))
+ orig = self.char.orig(frame)
+ if not orig: return
+ thumb = self.char.thumb(frame)
+
+ Document.stamp(self.tape_selected, orig)
+ self.tape[self.tape_selected].child.set_from_pixbuf(thumb)
+ self.frames[frame].set_from_pixbuf(thumb)
+
self._tape_cb(None, None, self.tape_selected)
def _char_cb(self, widget, combo):
self.char = widget.props.value
+ self.char.change()
for i in range(len(self.frames)):
self.frames[i].set_from_pixbuf(self.char.thumb(i))