Mercurial > MadButterfly
comparison pyink/MBScene.py @ 1303:cf2691a18a7a
Add component dock
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 19 Jan 2011 14:52:29 +0800 |
parents | 71118bff7d61 |
children | 94e6594dea59 |
comparison
equal
deleted
inserted
replaced
1302:c53331c55a23 | 1303:cf2691a18a7a |
---|---|
56 super(MBScene, self).__init__() | 56 super(MBScene, self).__init__() |
57 | 57 |
58 self.desktop = desktop | 58 self.desktop = desktop |
59 self.window = win | 59 self.window = win |
60 self.top = None | 60 self.top = None |
61 self._comp_dock = None | |
61 self.last_update = None | 62 self.last_update = None |
62 pybInkscape.inkscape.connect('change_selection', self.do_selection) | 63 pybInkscape.inkscape.connect('change_selection', self.do_selection) |
63 self.last_select = None | 64 self.last_select = None |
64 self._director = None | 65 self._director = None |
65 self.document = None | 66 self.document = None |
353 self.addNameEditor(hbox) | 354 self.addNameEditor(hbox) |
354 self.addTweenTypeSelector(hbox) | 355 self.addTweenTypeSelector(hbox) |
355 pass | 356 pass |
356 | 357 |
357 def show(self): | 358 def show(self): |
359 from comp_dock import comp_dock | |
360 | |
358 self.OK = True | 361 self.OK = True |
359 if not self._root: | 362 if not self._root: |
360 self._root = self.desktop.doc().root().repr | 363 self._root = self.desktop.doc().root().repr |
361 pass | 364 pass |
362 | 365 |
381 vbox.pack_start(frame_ui, expand=False) | 384 vbox.pack_start(frame_ui, expand=False) |
382 hbox=gtk.HBox(False, 0) | 385 hbox=gtk.HBox(False, 0) |
383 self._add_buttons(hbox) | 386 self._add_buttons(hbox) |
384 vbox.pack_start(hbox, expand=False) | 387 vbox.pack_start(hbox, expand=False) |
385 | 388 |
389 dock = comp_dock() | |
390 dock.install_dock(self.desktop) | |
391 self._comp_dock = dock | |
392 | |
386 self.top.show_all() | 393 self.top.show_all() |
387 self.last_update = None | 394 self.last_update = None |
388 return False | 395 return False |
389 pass | 396 pass |