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

Method _init

Demo/Lib/BackingPaint.py:42–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

40 self._init()
41
42 def _init(self):
43 self._widget.setAttribute(Qt.WA_NativeWindow)
44 self._widget.setAttribute(Qt.WA_PaintOnScreen)
45 self._widget.setAttribute(Qt.WA_StaticContents)
46 self._widget.setAttribute(Qt.WA_OpaquePaintEvent)
47 self._widget.setAttribute(Qt.WA_NoSystemBackground)
48 self._widget.setAttribute(Qt.WA_DontCreateNativeAncestors)
49 self._widget.setUpdatesEnabled(False)
50 self._widget.setAutoFillBackground(False)
51
52 self._window = self._widget.windowHandle()
53 self._window.create()
54
55 def stop(self):
56 self._exited.set()

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected