def SetPackageView(self, directoryView):
        """Set whether to use directory/package based view"""
        self.directoryView = not self.directoryView
        self.packageMenuItem.Check(self.directoryView)
        self.packageViewTool.SetValue(self.directoryView)
        if self.loader:
            self.SetModel(self.loader)
        self.RecordHistory()
def SetPackageView ( self , directoryView ) : self . directoryView = not self . directoryView self . packageMenuItem . Check ( self . directoryView ) self . packageViewTool . SetValue ( self . directoryView ) if self . loader : self . SetModel ( self . loader ) self . RecordHistory ( )
Set whether to use directory/package based view