--- a/eric6/Graphics/PackageDiagramBuilder.py Sat May 01 16:01:43 2021 +0200 +++ b/eric6/Graphics/PackageDiagramBuilder.py Sat May 01 18:48:35 2021 +0200 @@ -378,12 +378,15 @@ @param isRbModule flag indicating a Ruby module (boolean) """ from .ClassItem import ClassItem, ClassModel - meths = sorted(_class.methods.keys()) - attrs = sorted(_class.attributes.keys()) name = _class.name if isRbModule: name = "{0} (Module)".format(name) - cl = ClassModel(name, meths[:], attrs[:]) + cl = ClassModel( + name, + sorted(_class.methods.keys())[:], + sorted(_class.attributes.keys())[:], + sorted(_class.globals.keys())[:] + ) cw = ClassItem(cl, False, x, y, noAttrs=self.noAttrs, scene=self.scene, colors=self.umlView.getDrawingColors()) cw.setId(self.umlView.getItemId())