def __init__(self):
super().__init__()
self.mySocket = socket.socket()
self.params = {}
self.responseThread = ResponseThread(self.mySocket)
self.isPlaying = False
self.setGeometry(300, 200, 280, 300)
self.setWindowTitle('Kodi Remote Control')
self.setWindowIcon(QIcon(ICON_PATH))
self.img = QLabel('img')
self.img.setPixmap(QPixmap(IMG_PATH))
self.status = QLabel('OK')
self.pbar = QProgressBar()
self.progress = 0
self.timer = QBasicTimer()
box = QVBoxLayout()
box.addWidget(self.img)
box.addWidget(self.status)
box.addWidget(self.pbar)
self.setLayout(box)
self.show()
self.setFixedSize(self.size())
self.responseThread.mySignal.connect(self.handleSignals)
self.responseThread.start()
评论列表
文章目录