(self, *args, **kwargs)
| 21 | class Window(QWidget, QCursorGif): |
| 22 | |
| 23 | def __init__(self, *args, **kwargs): |
| 24 | super(Window, self).__init__(*args, **kwargs) |
| 25 | # 设置忙碌光标图片数组 |
| 26 | self.initCursor(['Data/Images/Cursors/%d.png' % |
| 27 | i for i in range(8)], self) |
| 28 | self.setCursorTimeout(100) |
| 29 | |
| 30 | layout = QVBoxLayout(self) |
| 31 | layout.addWidget(QPushButton( |
| 32 | 'start busy', self, clicked=self.startBusy)) |
| 33 | layout.addWidget(QPushButton( |
| 34 | 'stop busy', self, clicked=self.stopBusy)) |
| 35 | |
| 36 | |
| 37 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected