self.name = name
self.title = title
self.widget = widget
- self.label = QLabel("<b>%s</b>" % self.title, self)
- self.label.setScaledContents(False)
layout = QVBoxLayout(self)
- layout.addWidget(self.label)
layout.addWidget(self.widget)
-
self.setLayout(layout)
- def getLabelText(self):
+ def getLinkText(self):
return "<a href='%s'>Go to %s</a>" % (self.name, self.name)
+
+ def getTitleText(self):
+ return "<b>%s</b>" % self.title