--- a/eric6/Graphics/PackageItem.py Tue May 04 19:30:25 2021 +0200 +++ b/eric6/Graphics/PackageItem.py Tue May 04 20:03:40 2021 +0200 @@ -23,8 +23,10 @@ """ Constructor - @param name package name (string) - @param moduleslist list of module names (list of strings) + @param name package name + @type str + @param moduleslist list of module names + @type list of str """ super().__init__(name) @@ -34,7 +36,8 @@ """ Public method to add a module to the package model. - @param modulename module name to be added (string) + @param modulename module name to be added + @type str """ self.moduleslist.append(modulename) @@ -42,7 +45,8 @@ """ Public method to retrieve the modules of the package. - @return list of module names (list of strings) + @return list of module names + @rtype list of str """ return self.moduleslist[:] @@ -147,7 +151,8 @@ """ Public method to set the package model. - @param model package model containing the package data (PackageModel) + @param model package model containing the package data + @type PackageModel """ self.scene().removeItem(self.header) self.header = None @@ -162,9 +167,12 @@ """ Public method to paint the item in local coordinates. - @param painter reference to the painter object (QPainter) - @param option style options (QStyleOptionGraphicsItem) - @param widget optional reference to the widget painted on (QWidget) + @param painter reference to the painter object + @type QPainter + @param option style options + @type QStyleOptionGraphicsItem + @param widget optional reference to the widget painted on + @type QWidget """ pen = self.pen() if ( @@ -201,7 +209,8 @@ "attribute=value" with pairs separated by ", ". value must not contain ", " or newlines. - @return persistence data (string) + @return persistence data + @rtype str """ entries = [ "no_modules={0}".format(self.noModules), @@ -217,9 +226,12 @@ """ Public method to parse the given persistence data. - @param version version of the data (string) - @param data persisted data to be parsed (string) - @return flag indicating success (boolean) + @param version version of the data + @type str + @param data persisted data to be parsed + @type str + @return flag indicating success + @rtype bool """ parts = data.split(", ") if len(parts) < 2: