def createSection(self, name, attrs, tabname, parent):
		if (name == "tabs"):
			p = QTabWidget(parent)
		elif isinstance(parent, QTabWidget):
			p = QFrame()
			parent.addTab(p, tabname)
			self.contentPanels.append(p)
			p.setAutoFillBackground(True)
		else:
			p = QFrame(parent)
			self.contentPanels.append(p)
			p.setVisible(self.defaultsSection.getWithDefault(attrs, "visible") == "yes")
			p.setAutoFillBackground(True)

		p.move(int(self.defaultsSection.getWithDefault(attrs, "left")),
			int(self.defaultsSection.getWithDefault(attrs, "top")))
		p.resize(int(self.defaultsSection.getWithDefault(attrs, "width")),
				 int(self.defaultsSection.getWithDefault(attrs, "height")))
		p.Tag = tabname

		setControlColors(p, bg=self.defaultsSection.getWithDefault(attrs, "bgcolor"))
		return p