+ self.plugins = {}
+ for x in self.pluginlist:
+ split = x[3].split('-')
+ if len(split) < 2:
+ continue
+ if not self.plugins.has_key(split[0]):
+ self.plugins[split[0]] = []
+
+ self.plugins[split[0]].append((PluginDescriptor(name = x[3], description = x[2], icon = verticallineIcon), split[1]))
+
+ for x in self.plugins.keys():
+ if x in self.expanded:
+ self.list.append(PluginCategoryComponent(x, expandedIcon))
+ for plugin in self.plugins[x]:
+ self.list.append(PluginDownloadComponent(plugin[0], plugin[1]))
+ else:
+ self.list.append(PluginCategoryComponent(x, expandableIcon))