(self, event)
Executed when AddProject class is shown (AddProject.show())
Executed when AddProject class is shown (AddProject.show())
Executed when AddProject class is shown ( AddProject . show () )
def showEvent(self, event):
        """
        Executed when AddProject class is shown (AddProject.show())
        """

        # Clean UI
        self.asset_ui.linProjectName.setText(self.project.name)
        self.asset_ui.linAssetName.clear()
        self.asset_ui.txtDescription.clear()

        # Add asset types to ui
        self.model_asset_types = models.ListModel(self.asset_types)
        self.asset_ui.comAssetType.setModel(self.model_asset_types)
def showEvent ( self , event ) : # Clean UI self . asset_ui . linProjectName . setText ( self . project . name ) self . asset_ui . linAssetName . clear ( ) self . asset_ui . txtDescription . clear ( ) # Add asset types to ui self . model_asset_types = models . ListModel ( self . asset_types ) self . asset_ui . comAssetType . setModel ( self . model_asset_types )