MCPcopy Create free account
hub / github.com/cztomczak/cefpython / __init__

Method __init__

examples/qt.py:133–150  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

131
132class MainWindow(QMainWindow):
133 def __init__(self):
134 # noinspection PyArgumentList
135 super(MainWindow, self).__init__(None)
136 # Avoids crash when shutting down CEF (issue #360)
137 if PYSIDE:
138 self.setAttribute(Qt.WA_DeleteOnClose, True)
139 self.cef_widget = None
140 self.navigation_bar = None
141 if PYQT4:
142 self.setWindowTitle("PyQt4 example")
143 elif PYQT5:
144 self.setWindowTitle("PyQt5 example")
145 elif PYSIDE:
146 self.setWindowTitle("PySide example")
147 elif PYSIDE2:
148 self.setWindowTitle("PySide2 example")
149 self.setFocusPolicy(Qt.StrongFocus)
150 self.setupLayout()
151
152 def setupLayout(self):
153 self.resize(WIDTH, HEIGHT)

Callers

nothing calls this directly

Calls 2

setupLayoutMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected