def __init__(self, splitter: 'miscwidgets.InspectorSplitter', win_id: int, parent: QWidget = None) -> None: super().__init__(parent) self._widget = typing.cast(QWidget, None) self._layout = miscwidgets.WrapperLayout(self) self._splitter = splitter self._position = None # type: typing.Optional[Position] self._event_filter = _EventFilter(win_id, parent=self) self._child_event_filter = eventfilter.ChildEventFilter( eventfilter=self._event_filter, win_id=win_id, parent=self)
def __init__(self, splitter: 'miscwidgets.InspectorSplitter', win_id: int, parent: QWidget = None) -> None: super().__init__(parent) self._widget = cast(QWidget, None) self._layout = miscwidgets.WrapperLayout(self) self._splitter = splitter self._position: Optional[Position] = None self._win_id = win_id self._event_filter = _EventFilter(parent=self) self._event_filter.clicked.connect(self._on_clicked) self._child_event_filter = eventfilter.ChildEventFilter( eventfilter=self._event_filter, parent=self)