kodi_remote.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:kodi-remote 作者: chatper 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号