(self)
Setup ui
Setup ui
Setup ui
def setup(self):
        """ Setup ui
        """
        h_box = QHBoxLayout()
        h_box.setContentsMargins(0, 0, 0, 0)
        update_label = QLabel(
            'A newer Version of Dwarf is available. Checkout <a style="color:white;" '
            'href="https://github.com/iGio90/Dwarf">Dwarf on GitHub</a> for more informations'
        )
        update_label.setOpenExternalLinks(True)
        update_label.setTextFormat(Qt.RichText)
        update_label.setTextInteractionFlags(Qt.TextBrowserInteraction)

        self.update_button = QPushButton('Update now!', update_label)
        self.update_button.setStyleSheet('padding: 0; border-color: white;')
        self.update_button.setGeometry(
            self.parent().width() - 10 - update_label.width() * .2, 5,
            update_label.width() * .2, 25)
        self.update_button.clicked.connect(self.update_now_clicked)
        #self.setMaximumHeight(35)
        h_box.addWidget(update_label)
        self.setLayout(h_box)
def setup ( self ) : h_box = QHBoxLayout ( ) h_box . setContentsMargins ( 0 , 0 , 0 , 0 ) update_label = QLabel ( 'A newer Version of Dwarf is available. Checkout <a style="color:white;" ' 'href="https://github.com/iGio90/Dwarf">Dwarf on GitHub</a> for more informations' ) update_label . setOpenExternalLinks ( True ) update_label . setTextFormat ( Qt . RichText ) update_label . setTextInteractionFlags ( Qt . TextBrowserInteraction ) self . update_button = QPushButton ( 'Update now!' , update_label ) self . update_button . setStyleSheet ( 'padding: 0; border-color: white;' ) self . update_button . setGeometry ( self . parent ( ) . width ( ) - 10 - update_label . width ( ) * .2 , 5 , update_label . width ( ) * .2 , 25 ) self . update_button . clicked . connect ( self . update_now_clicked ) #self.setMaximumHeight(35) h_box . addWidget ( update_label ) self . setLayout ( h_box )