示例#1
0
    def __init__(self, *args, **kwargs):
        QDialog.__init__(self, *args, **kwargs)
        self.setLayout(QVBoxLayout())
        btn = QPushButton("Submit", self)
        btn.clicked.connect(self.submit)
        self.spinner = QtWaitingSpinner(self)

        self.layout().addWidget(btn)
        self.layout().addWidget(self.spinner)
示例#2
0
 def __init__(self, main_table):
     super().__init__()
     self.setWindowTitle("Client Connection")
     self.setWindowIcon(QIcon("src/icons/return.png"))
     self.setGeometry(650, 300, 250, 250)
     self.setFixedSize(self.size())
     self.spinner = QtWaitingSpinner()
     self.main_table = main_table
     self.ui()
     self.show()
示例#3
0
    def initGUI(self):
        self.resize(483, 579)
        fg = self.frameGeometry()
        center = QDesktopWidget().availableGeometry().center()
        fg.moveCenter(center)
        self.move(fg.topLeft())
        self.setWindowTitle('CReF2')

        self.installBtn = QPushButton('Install', self)
        self.installBtn.move(202, 545)
        self.installBtn.clicked.connect(self.installBtnCB)

        self.logEditor = QTextEdit(self)
        self.logEditor.setReadOnly(True)
        self.logEditor.resize(463, 206)
        self.logEditor.move(10, 330)

        logo = QLabel(self)
        pm = QPixmap('logo.png')
        logo.setPixmap(pm)
        logo.move(10, 10)

        self.loading = QtWaitingSpinner(self, False, False)
        self.loading.setRoundness(70.0)
        self.loading.setMinimumTrailOpacity(15.0)
        self.loading.setTrailFadePercentage(70.0)
        self.loading.setNumberOfLines(30)
        self.loading.setLineLength(2)
        self.loading.setLineWidth(5)
        self.loading.setInnerRadius(10)
        self.loading.setRevolutionsPerSecond(1)
        self.loading.setColor(QColor(42, 161, 95))
        self.loading.move(self.width() / 2 - self.loading.width() / 2, 545)
        self.loading.setVisible(False)

        self.show()