diff 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
line wrap: on
line diff
--- a/pyink/MBScene.py	Wed Jan 19 10:01:09 2011 +0800
+++ b/pyink/MBScene.py	Wed Jan 19 14:52:29 2011 +0800
@@ -58,6 +58,7 @@
 	self.desktop = desktop
 	self.window = win
 	self.top = None
+	self._comp_dock = None
 	self.last_update = None
 	pybInkscape.inkscape.connect('change_selection', self.do_selection)
 	self.last_select = None
@@ -355,6 +356,8 @@
 	pass
 
     def show(self):
+	from comp_dock import comp_dock
+	
 	self.OK = True
 	if not self._root:
 	    self._root = self.desktop.doc().root().repr
@@ -383,6 +386,10 @@
 	self._add_buttons(hbox)
 	vbox.pack_start(hbox, expand=False)
 
+	dock = comp_dock()
+	dock.install_dock(self.desktop)
+	self._comp_dock = dock
+
 	self.top.show_all()
 	self.last_update = None
 	return False