Mercurial > MadButterfly
comparison pyink/MBScene.py @ 1201:582d3410e546
Remove unused functions
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 03 Jan 2011 13:57:00 +0800 |
parents | 213f03dbfc41 |
children | 2f3d523a3871 |
comparison
equal
deleted
inserted
replaced
1200:213f03dbfc41 | 1201:582d3410e546 |
---|---|
570 tween_type)) | 570 tween_type)) |
571 pass | 571 pass |
572 pass | 572 pass |
573 pass | 573 pass |
574 pass | 574 pass |
575 | |
576 def getLayer(self, layer): | |
577 for l in self.layers: | |
578 if l.group.getAttribute('id') == layer: | |
579 return l | |
580 pass | |
581 return None | |
582 pass | 575 pass |
583 | 576 |
584 class MBScene(MBScene_dom): | 577 class MBScene(MBScene_dom): |
585 _frameline_tween_types = (frameline.TWEEN_TYPE_NONE, | 578 _frameline_tween_types = (frameline.TWEEN_TYPE_NONE, |
586 frameline.TWEEN_TYPE_SHAPE) | 579 frameline.TWEEN_TYPE_SHAPE) |
625 except: | 618 except: |
626 self.nameEditor.set_text('') | 619 self.nameEditor.set_text('') |
627 pass | 620 pass |
628 pass | 621 pass |
629 | 622 |
630 def confirm(self,msg): | |
631 vbox = gtk.VBox() | |
632 vbox.pack_start(gtk.Label(msg)) | |
633 self.button = gtk.Button('OK') | |
634 vbox.pack_start(self.button) | |
635 self.button.connect("clicked", self.onQuit) | |
636 self.window.add(vbox) | |
637 pass | |
638 | |
639 def removeKeyScene(self, frameline, frame_idx): | 623 def removeKeyScene(self, frameline, frame_idx): |
640 start, end, scene_type = frameline.get_frame_block(frame_idx) | 624 start, end, scene_type = frameline.get_frame_block(frame_idx) |
641 scene_node = frameline.get_frame_data(start) | 625 scene_node = frameline.get_frame_data(start) |
642 | 626 |
643 frameline.rm_keyframe(start) | 627 frameline.rm_keyframe(start) |
1054 traceback.print_exc() | 1038 traceback.print_exc() |
1055 raise | 1039 raise |
1056 self.current = self.current + 1 | 1040 self.current = self.current + 1 |
1057 self.last_update = glib.timeout_add(1000/self.framerate,self.doRunNext) | 1041 self.last_update = glib.timeout_add(1000/self.framerate,self.doRunNext) |
1058 | 1042 |
1059 def doInsertScene(self,w): | |
1060 self._lockui=True | |
1061 self.last_line.insert_frame(self.last_frame) | |
1062 self.update_scenes_of_dom() | |
1063 self._lockui=False | |
1064 pass | |
1065 | |
1066 def addButtons(self,hbox): | 1043 def addButtons(self,hbox): |
1067 btn = gtk.Button('Insert Key') | 1044 btn = gtk.Button('Insert Key') |
1068 btn.connect('clicked',self.doInsertKeyScene) | 1045 btn.connect('clicked',self.doInsertKeyScene) |
1069 hbox.pack_start(btn,expand=False,fill=False) | 1046 hbox.pack_start(btn,expand=False,fill=False) |
1070 | 1047 |
1076 btn.connect('clicked', self.doExtendScene) | 1053 btn.connect('clicked', self.doExtendScene) |
1077 hbox.pack_start(btn,expand=False,fill=False) | 1054 hbox.pack_start(btn,expand=False,fill=False) |
1078 | 1055 |
1079 btn=gtk.Button('Duplicate Key') | 1056 btn=gtk.Button('Duplicate Key') |
1080 btn.connect('clicked', self.doDuplicateKeyScene) | 1057 btn.connect('clicked', self.doDuplicateKeyScene) |
1081 hbox.pack_start(btn,expand=False,fill=False) | |
1082 | |
1083 btn=gtk.Button('Insert') | |
1084 btn.connect('clicked', self.doInsertScene) | |
1085 hbox.pack_start(btn,expand=False,fill=False) | |
1086 | |
1087 btn=gtk.Button('Remove') | |
1088 btn.connect('clicked', self.doRemoveScene) | |
1089 hbox.pack_start(btn,expand=False,fill=False) | 1058 hbox.pack_start(btn,expand=False,fill=False) |
1090 | 1059 |
1091 btn=gtk.Button('Run') | 1060 btn=gtk.Button('Run') |
1092 btn.connect('clicked', self.doRun) | 1061 btn.connect('clicked', self.doRun) |
1093 self.btnRun = btn | 1062 self.btnRun = btn |