Python Report
Python Report
Submitted by:
CERTIFICATE
This is to certify that this micro project is submitted in partial fulfilment of progressive
assessment in the course Programming with Python (22616) of sixth semester of Diploma in
Computer Engineering for the academic year 2022-23 as prescribe in the curriculum.
Course Co-ordinator
Rationale
Features :
The most popular browsers have a number of features in common. They automatically log
browsing history or can be used in a non-logging private mode. They also allow users to set
bookmarks, customize the browser with extensions, and can manage user passwords. Some
provide a sync service and web accessibility features. Traditional browser arrangement: UI
features above page content.
• Allow the user to open multiple pages at the same time, either in different browser
windows or in different tabs of the same window.
• Back and forward buttons to go back to the previous page visited or forward to the
next one.
• A refresh or reload and a stop button to reload and cancel loading the current page. (In
most browsers, the stop button is merged with the reload button.)
• A home button to return to the user's home page.
• An address bar to input the URL of a page and display it, and a search bar to input
terms into a search engine. (In most browsers, the search bar is merged with the
address bar.)
While mobile browsers have similar UI features as desktop versions, the limitations of touch
screens require mobile UIs to be simpler. The difference is significant for users accustomed to
keyboard shortcuts. The most popular desktop browsers also have sophisticated web
development tools.
Besides the common usage of graphical browsers, there are niche text-based and headless
types of browsers.
Aim of the project
Literature review
1. https://www.javatpoint.com/how-to-install-python
I studied, how to install Python on my machine
2. https://www.tutorialspoint.com/python/index.htm
I learned about Python
3. https://www.geeksforgeeks.org/creating-a-simple-browser-using-pyqt5/
I learned to develop Web Browser desgin in python
Actual methodology
Resources required
import sys
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()
navbar = QToolBar()
self.addToolBar(navbar)
back_btn = QAction('Back', self)
back_btn.triggered.connect(self.browser.back)
navbar.addAction(back_btn)
forward_btn = QAction('Forward', self)
forward_btn.triggered.connect(self.browser.forwa
rd)
navbar.addAction(forward_btn)
reload_btn = QAction('Reload', self)
reload_btn.triggered.connect(self.browser.reload)
navbar.addAction(reload_btn)
home_btn = QAction('Home', self)
home_btn.triggered.connect(self.navigate_home)
navbar.addAction(home_btn)
self.url_bar = QLineEdit()
self.url_bar.returnPressed.connect(self.navigate_t
o_url) navbar.addWidget(self.url_bar)
self.browser.urlChanged.connect(self.update_url)
def navigate_home(self):
self.browser.setUrl(QUrl('http://programminghero.com'))
def navigate_to_url(self):
url = self.url_bar.text()
self.browser.setUrl(QUrl(url))
def update_url(self, q):
self.url_bar.setText(q.toString())
app = QApplication(sys.argv)
QApplication.setApplicationName('Web Browser')
window = MainWindow()
app.exec_()
Output
Skill developed
Name of
Planne
Sr. Planned responsible
Details of activity d finish
No. Start date team
date
members
Discussion
and
1.
finalization
of topic
Preparation
and
2. submission
of project
proposal
Planning layout of
3.
micro project
4. Content preparation
Discussion
about
5.
required
resources
Correction and
6.
implementation
7. Seminar
Submission
of
8.
microprojec
t report