def __init__(self, base): QVBoxLayout.__init__(self) self.base = base self.child = None self.columns = {} self.is_empty = None self.loading()
def __init__(self, base, title, image, text=None, text_as_link=False): QVBoxLayout.__init__(self) icon = QLabel() icon.setPixmap(base.load_image(image, True)) caption = QLabel("<b>%s</b>" % i18n.get(title)) header = QHBoxLayout() header.addWidget(icon) header.addWidget(caption, 1) if text: self.text = QLabel(text) else: self.text = QLabel() self.setSpacing(5) self.setContentsMargins(10, 0, 10, 0) self.addLayout(header) self.addWidget(self.text)
def __init__(self, title, value=None): QVBoxLayout.__init__(self) value = value or '0' font = QFont() font.setPointSize(16) font.setBold(True) self.stat = QLabel(value) self.stat.setAlignment(Qt.AlignCenter) self.stat.setFont(font) font2 = QFont() font2.setPointSize(10) caption = QLabel(i18n.get(title)) caption.setAlignment(Qt.AlignCenter) caption.setFont(font2) self.setSpacing(5) self.setContentsMargins(0, 0, 0, 0) self.addWidget(self.stat) self.addWidget(caption)
def __init__(self, parent=None): QVBoxLayout.__init__(self, parent) self._last_size = QSize(0, 0)
def __init__(self, *args, **kwargs): QVBoxLayout.__init__(self, *args, **kwargs)
def __init__(self): QVBoxLayout.__init__(self) self.setSpacing(0) self.setContentsMargins(11, 1, 11, 1)
def __init__(self, parent = None): QVBoxLayout.__init__(self, parent)