Skip to content

MasterBhuvnesh/Clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python GUI for Analog clock

coding display coding display

This is a Python script that creates a simple desktop application using PyQt5 library to display an analog clock that runs on a local webpage.

The script creates a main window, sets its size and title, and adds a QWebEngineView widget to display the webpage. The webpage is loaded from a local HTML file that contains the clock design and JavaScript code to update the clock hands' positions. The webpage's CSS style is also defined in the HTML file.

The clock hands' position is updated using the setInterval() method in JavaScript. The function gets the current time, calculates the rotation angle for each hand, and sets the transform CSS property for each hand element.

The CSS style for the clock and its hands is defined in a separate file called style.css, which is linked to the HTML file using the <link> tag.

Finally, the script sets the application icon using the setWindowIcon() method.

To run this script, you need to have PyQt5 and PyQt5.QtWebEngineWidgets libraries installed on your system.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published