Exemple #1
0
    def openWindow(self):
        """
        in: nothing
        returns nothing
        """

        # superclass openwindow
        ListWindow.openWindow(self)

        # create systree, processlist, propertylist
        self.theSystemTree = SystemTree(self, self['SystemTreeFrame'])
        self.theEntityType = self.__getEntityType()

        ###############################################################################
        self.theEntityList = EntityList(self, self['EntityListFrame'],
                                        self.theEntityType)

        self.theEntityEditorList = EntityEditor(self,
                                                self['EntityEditorFrame'],
                                                self.theEntityType)

        # add signal handlers
        self.addHandlers({
            'on_variable1_activate': self.__entitychooser_changed,
            'on_process1_activate': self.__entitychooser_changed
        })

        self.theEntityList.changeDisplayedType(self.theEntityType)

        self.selectEntity([ME_ROOTID])

        self.update()
Exemple #2
0
 def __init__( self, aModelEditor, aLayoutName, anObjectId ):
     """
     sets up a modal dialogwindow displaying 
     the EntityEditor and the ShapeProperty
     # objectID can be None, String, list of strings
     """ 
     self.theModelEditor = aModelEditor  
     self.theTopFrame = gtk.VBox()
     self.theEntityEditor = EntityEditor( self, self.theTopFrame,'Entity', True )
     self.theShapeProperty = self.theEntityEditor.getShapeProperty()
     self.setDisplayObjectEditorWindow(aLayoutName, anObjectId)