Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, parent=None):
QWidget.__init__(self, parent)
boxlayout = QHBoxLayout(self)
self.scrollarea = ScopeScrollArea(self)
self.editor = NodeEditor(self)
self.editor.setFocusPolicy(QtCore.Qt.WheelFocus)
self.scrollarea.setWidget(self.editor)
self.scrollarea.setWidgetResizable(True)
self.scrollarea.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
self.scrollarea.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
self.scrollarea.update_theme()
self.linenumbers = LineNumbers(self)
self.linenumbers.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
self.autolboxes = AutoLBoxComplete(self)
boxlayout.addWidget(self.autolboxes)
boxlayout.addWidget(self.linenumbers)
boxlayout.addWidget(self.scrollarea)