The purpose of this tutorial is to show, step by step, how to use eric6 to implement a little web browser with eric6, Python and PyQt5.
Qt designer is used to arrange three widgets in main window: a QLineEdit which will be used to type urls into a QPushButton to start the navigation to the url typed, and a QWebEngineView which will render the html content. The tutorial shows how a web browser can be implemented with Python, PyQt5 and Qt typing just a very small amount of code. Eric6 will do all the rest of the job!
The purpose of this tutorial is to quickly explain how to:
However, this tutorial is not:
When following along the tutorial, rather than copy/pasting the code from these html pages you should download a copy of the project.
It is better to use the downloaded eric6 project because copy-pasting from the html pages could break the indentations in code, therefore causing it not to work.
Once downloaded and unzipped, you can simply open the file project with eric6 (MiniBrowser.e4p).
Besides, I've made a video showing the procedure of creating the Minibrowser. You can watch it at Youtube. Keep in mind though, that I'm not anglophone and my pronounciation can become a bit messy in some parts of the video. I am also not used to do videotutorials. Despite it all, maybe you can find it helpful, though.
I hope you enjoy the tutorial and it is useful for you.
I am not by any means an expert either with Python, Qt or eric6. I just happen to like these three, and I think that this tutorial could be of help to somebody.
If you find something wrong in it, or something that could be improved, or simply have any questions, you can drop a mail to jaimsDOTseumaATgmailDOTcom