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

Method __init__

Demo/CallVirtualKeyboard.py:24–31  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

22class Window(QWidget):
23
24 def __init__(self, *args, **kwargs):
25 super(Window, self).__init__(*args, **kwargs)
26 layout = QVBoxLayout(self)
27 self.resultEdit = QTextEdit(self)
28 self.resultEdit.setReadOnly(True)
29 layout.addWidget(self.resultEdit)
30 layout.addWidget(QPushButton(
31 '打开虚拟键盘', self, clicked=self._onOpenKeyboard))
32
33 def _onOpenKeyboard(self):
34 kernelType = QSysInfo.kernelType()

Callers

nothing calls this directly

Calls 1

addWidgetMethod · 0.80

Tested by

no test coverage detected