Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Main.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-01-30 02:18:20 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-01-30 02:18:20 (GMT)
commit56cea3b5c6361c7958e1c27182fcf117470a1861 (patch)
tree409b64b30ded33f31984bda642a7732e4b239afe /Main.py
parent89c8d62f20aa0b72b1acc432a135d709b2bd096d (diff)
Implement character frames panel
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))