Буду благодарен за любую информацию, особенно если поделитесь простыми примерами с пояснениями на примере кода:
import sys from PyQt5.QtWidgets import QApplication, QMainWindow from PyQt5.QtGui import QIcon from PyQt5.QtCore import QUrl from PyQt5.QtWebEngineWidgets import QWebEngineView class MainWindow(QMainWindow): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.initUI() def initUI(self): self.setWindowTitle('Translator') self.setWindowIcon(QIcon('ya_translate.png')) self.setFixedSize(400, 580) self.showMaximized() self.browser = WebEngineView() self.browser.load(QUrl(f"https://yandex.ru/")) self.setCentralWidget(self.browser) class WebEngineView(QWebEngineView): windowList = [] def createWindow(self, QWebEnginePage_WebWindowType): new_webview = WebEngineView() new_window = MainWindow() new_window.setCentralWidget(new_webview) self.windowList.append(new_window) return new_webview if __name__ == "__main__": print() app = QApplication(sys.argv) window = MainWindow() window.show() sys.exit(app.exec_())