# HG changeset patch # User Thinker K.F. Li # Date 1294712453 -28800 # Node ID 16a1166c385088e251a0bfc8a13a126dc88eeebf # Parent 2f9fa5d59e6715771895cfa5e12bc3b38accbbfb Add more method being monitored diff -r 2f9fa5d59e67 -r 16a1166c3850 pyink/MBScene.py --- a/pyink/MBScene.py Tue Jan 11 10:04:14 2011 +0800 +++ b/pyink/MBScene.py Tue Jan 11 10:20:53 2011 +0800 @@ -110,7 +110,7 @@ self.window = win self.top = None self.last_update = None - pybInkscape.inkscape.connect('change_selection', self.on_selection) + pybInkscape.inkscape.connect('change_selection', self.do_selection) self.last_select = None self._lockui = False self._director = None @@ -219,7 +219,7 @@ self._director.show_scene(frame_idx) pass - def changeObjectLabel(self,w): + def do_changeObjectLabel(self,w): o = self.desktop.selection.list()[0] o.setAttribute("inkscape:label", self.nameEditor.get_text()) pass @@ -229,7 +229,7 @@ hbox.pack_start(self.nameEditor,expand=False,fill=False) self.editDone = gtk.Button('Set') hbox.pack_start(self.editDone,expand=False,fill=False) - self.editDone.connect('clicked', self.changeObjectLabel) + self.editDone.connect('clicked', self.do_changeObjectLabel) pass def addTweenTypeSelector(self, hbox): @@ -243,10 +243,10 @@ self.tweenTypeSelector.set_active(0) tweenbox.pack_start(self.tweenTypeSelector, expand=False, fill=False) hbox.pack_start(tweenbox, expand=False, fill=False) - self.tweenTypeSelector.connect('changed', self.onTweenTypeChange) + self.tweenTypeSelector.connect('changed', self.do_TweenTypeChange) pass - def on_selection(self,w,obj): + def do_selection(self,w,obj): objs = self.desktop.selection.list() try: o = objs[0] @@ -346,7 +346,7 @@ self._domview.rm_frames(layer_idx, frame_idx, 1) self.lockui=False - def onTweenTypeChange(self, w): + def do_TweenTypeChange(self, w): if self._disable_tween_type_selector: return