Mercurial > MadButterfly
comparison pyink/MBScene.py @ 1268:cd848c2ec29f
Remove unused code.
- Keep code base as clean as possible before commiting it.
- Keep clean is a rule that should be followed anytime/anywhere.
- Since we have VCS, don't leave anything that is no more used for
the regret at later.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 12 Jan 2011 20:52:34 +0800 |
parents | 2318a094a277 |
children | f6a28f473494 |
comparison
equal
deleted
inserted
replaced
1267:2318a094a277 | 1268:cd848c2ec29f |
---|---|
194 tweenbox.pack_start(self.tweenTypeSelector, expand=False, fill=False) | 194 tweenbox.pack_start(self.tweenTypeSelector, expand=False, fill=False) |
195 hbox.pack_start(tweenbox, expand=False, fill=False) | 195 hbox.pack_start(tweenbox, expand=False, fill=False) |
196 self.tweenTypeSelector.connect('changed', self.do_TweenTypeChange) | 196 self.tweenTypeSelector.connect('changed', self.do_TweenTypeChange) |
197 pass | 197 pass |
198 | 198 |
199 def lock(self): | |
200 self._domviewui.lock() | |
201 pass | |
202 | |
203 def unlock(self): | |
204 self._domviewui.unlock() | |
205 pass | |
206 | |
207 | |
208 def do_changeObjectLabel(self,w): | 199 def do_changeObjectLabel(self,w): |
209 o = self.desktop.selection.list()[0] | 200 o = self.desktop.selection.list()[0] |
210 o.setAttribute("inkscape:label", self.nameEditor.get_text()) | 201 o.setAttribute("inkscape:label", self.nameEditor.get_text()) |
211 pass | 202 pass |
212 | 203 |
287 tmout = 1000 / self.framerate | 278 tmout = 1000 / self.framerate |
288 self.last_update = glib.timeout_add(tmout, self.doRunNext) | 279 self.last_update = glib.timeout_add(tmout, self.doRunNext) |
289 pass | 280 pass |
290 | 281 |
291 def doInsertFrame(self, w): | 282 def doInsertFrame(self, w): |
292 self.lockui=True | |
293 layer_idx, frame_idx = self._domviewui.get_active_layer_frame() | 283 layer_idx, frame_idx = self._domviewui.get_active_layer_frame() |
294 self._domviewui.insert_frames(layer_idx, frame_idx, 1) | 284 self._domviewui.insert_frames(layer_idx, frame_idx, 1) |
295 self.markUndo("insert frame") | 285 self.markUndo("insert frame") |
296 self.lockui=False | |
297 | 286 |
298 def doRemoveFrame(self, w): | 287 def doRemoveFrame(self, w): |
299 self.lockui=True | |
300 layer_idx, frame_idx = self._domviewui.get_active_layer_frame() | 288 layer_idx, frame_idx = self._domviewui.get_active_layer_frame() |
301 self._domviewui.rm_frames(layer_idx, frame_idx, 1) | 289 self._domviewui.rm_frames(layer_idx, frame_idx, 1) |
302 self.markUndo("remove frame") | 290 self.markUndo("remove frame") |
303 self.lockui=False | |
304 | 291 |
305 def do_TweenTypeChange(self, w): | 292 def do_TweenTypeChange(self, w): |
306 if self._disable_tween_type_selector: | 293 if self._disable_tween_type_selector: |
307 return | 294 return |
308 | 295 |