Commits

Ali Afshar committed de8d916

editable properties from gazpacho, it only looks like it works, it doesnt actually

Comments (0)

Files changed (1)

gtkarchitect/view/main.py

 from .palette import Palette
 from .workspace import Workspace
 from .projecttree import ProjectTree
+from .propertyeditor import PropertyEditor
 
 from ..model.definitions import entity_catalog, get_entity_def
 
         palette = Palette(entity_catalog)
         workspace = Workspace()
         projecttree = ProjectTree()
+        propertyeditor = PropertyEditor(self)
 
         vb = gtk.VBox()
         self.get_toplevel().add(vb)
         self.palette = palette
         self.workspace = workspace
         self.projecttree = projecttree
+        self.propertyeditor = propertyeditor
+
+        vb.pack_start(propertyeditor)
 
         from ..utils.debug import DebugSlave
         self.debug = DebugSlave(self)
         if self.selected_gadget is not None:
             self.selected_gadget.deselect()
         self.selected_gadget = gadget
+        self.propertyeditor._load_gadget(gadget)
 
     def _on_gadget_placeholder_clicked(self, gadget, placeholder, position):
         entity_def = self.palette.current_entity_def