コード例 #1
0
ファイル: container.py プロジェクト: carriercomm/Turpial
 def __init__(self, base):
     QVBoxLayout.__init__(self)
     self.base = base
     self.child = None
     self.columns = {}
     self.is_empty = None
     self.loading()
コード例 #2
0
ファイル: container.py プロジェクト: urkh/Turpial
 def __init__(self, base):
     QVBoxLayout.__init__(self)
     self.base = base
     self.child = None
     self.columns = {}
     self.is_empty = None
     self.loading()
コード例 #3
0
ファイル: profile.py プロジェクト: Bouska/Turpial
    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)
コード例 #4
0
    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)
コード例 #5
0
    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)
コード例 #6
0
ファイル: profile.py プロジェクト: Bouska/Turpial
    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)
コード例 #7
0
 def __init__(self, parent=None):
     QVBoxLayout.__init__(self, parent)
     self._last_size = QSize(0, 0)
コード例 #8
0
ファイル: plugins_dialog.py プロジェクト: karstenv/manageR
 def __init__(self, *args, **kwargs):
     QVBoxLayout.__init__(self, *args, **kwargs)
コード例 #9
0
ファイル: utils.py プロジェクト: MacTop/sloth
 def __init__(self, parent=None):
     QVBoxLayout.__init__(self, parent)
     self._last_size = QSize(0, 0)
コード例 #10
0
ファイル: attr.py プロジェクト: maximerobin/Ufwi
 def __init__(self):
     QVBoxLayout.__init__(self)
     self.setSpacing(0)
     self.setContentsMargins(11, 1, 11, 1)
コード例 #11
0
ファイル: Translator.py プロジェクト: xete/pyqt_reindeer
	def __init__(self, parent = None):
		QVBoxLayout.__init__(self, parent)