def findWidget(self): w = findWidget.findWidgetClass(self.out) w.searchSignal.connect(self.tab.search) w.replaceSignal.connect(self.tab.replace) w.replaceAllSignal.connect(self.tab.replaceAll) w.show() w.activateWindow()