Hi everyone so as the question says, I have created a browser in python with PyQt5, Python 3.10 on pycharm. the starting of the file is thus:
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtWebEngineWidgets import *
class MainWindow(QMainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.browser = QWebEngineView()
self.browser.setUrl(QUrl('http://google.com'))
self.setCentralWidget(self.browser)
self.showMaximized()
def go_back(self):
self.browser.back()
def go_forward(self):...
and I have imported this browser.py in a different file main.py my question is, see the 'self' argument I defined in each functions? what do I pass in those brackets when calling them from main.py??
I hope you have understood my question I am putting in the easiest way possible...please comment for any confusions