MCPcopy Create free account
hub / github.com/PyQt5/PyQt / __init__

Method __init__

Demo/GifCursor.py:23–34  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

21class 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
37if __name__ == '__main__':

Callers

nothing calls this directly

Calls 3

initCursorMethod · 0.80
setCursorTimeoutMethod · 0.80
addWidgetMethod · 0.80

Tested by

no test coverage detected