Code Monkey home page Code Monkey logo

znkldev / desktop-clock-widget Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 19.23 MB

This code creates a clock and date display using the Tkinter library. The created window remains constantly visible on top of other windows, the window frame is removed to make it transparent, and it displays the time and date information.

License: GNU General Public License v3.0

Python 100.00%
clock clock-widget desktop-app desktop-widget widget windows-desktop

desktop-clock-widget's Introduction

Desktop Clock Widget

This project contains a basic clock widget created using Tkinter. This widget can be configured to start up when the system boots in Windows operating systems.

license Github All Releases GitHub release

Hotkeys and Buttons

  • Win+H Show/Hide the widget window

(Win + H shortcut conflicts with Windows applications in some cases.)

  • Win+T Show/Hide the widget window
  • Alt+M Change the clock mode
  • Alt+0 Reset chronometer
  • Alt+1 Start chronometer

Code how to Use

  1. Download or clone the project to your computer.
  2. Open a terminal or command prompt and run the following command to install the required libraries:

Required Libraries

  • tkinter
  • pywin32
  • keyboard

How to install:

pip install -r requirements.txt

The requirements.txt file contains a directory. That directory needs to be transferred to the command line.

# Example: If your 'requirements.txt' file is located at 'C:\users\pc\downloads\Desktop-Clock-Widget\'
cd C:\users\pc\downloads\Desktop-Clock-Widget
pip install -r requirements.txt
  1. Move the .exe file from the project folder to the startup folder or create a shortcut.

⚠️ WARNING: Montserrat font has been used for the clock. If this font is not installed on your computer, it may be displayed in a different font.

Font download link: https://fonts.google.com/specimen/Montserrat

Startup Configuration

  1. Right-click in the project folder to create a shortcut for the .exe file. (Or you can move the exe file directly.)
  2. Press Win + R, type shell:startup, and press Enter. This opens the Windows startup folder.
  3. Right-click in the startup folder and select "Paste shortcut" to add the shortcut.

Screen Capture

It will look like this;

Clock:

Screenshot of the Clock Widget

Chronometer:

Screenshot of the Clock Widget

Download

Download Latest Release

License

GPL-v3

This project is licensed under the GPL-3.0 License. For more information, see the LICENSE file.

If you want to make any modification on these source codes while keeping new codes not protected by GPL-3.0, please contact me for a sublicense instead.

Develooped by ZNKL© 07/12/2023

desktop-clock-widget's People

Contributors

znkldev avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.