A PHP Error was encountered

Severity: Warning

Message: fopen(/tmp/ci_session9442qt9c1v56c4192om46mtibctk4338): failed to open stream: No space left on device

Filename: drivers/Session_files_driver.php

Line Number: 176

Backtrace:

File: /var/www/html/application/controllers/Project.php
Line: 10
Function: __construct

File: /var/www/html/index.php
Line: 311
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Failed to read session data: user (path: /tmp)

Filename: Session/Session.php

Line Number: 143

Backtrace:

File: /var/www/html/application/controllers/Project.php
Line: 10
Function: __construct

File: /var/www/html/index.php
Line: 311
Function: require_once

PYTHON PROJECT TO CREATE A DIGITAL CLOCK | krishnadeekonda
Coders Packet

PYTHON PROJECT TO CREATE A DIGITAL CLOCK

By Krishna Prasad Deekonda

This is a basic python project to create a digital clock GUI Application with 24-hour standard time format and refreshes for every 200ms and gives breif idea how to implement python project

ABOUT

Firstly to create this GUI application we can use any IDE of our choice such as VSCode, PyCharms etc in a virtual environment. For this project we use package Tkinter which provides users with a simple way to create GUI elements using widgets found in the Tk toolkit which can be used as buttons, menus with interactivity and then we write the necessary code for displaying the digital clock using this we can configure and customise our own fonts, background and foreground display colors etc and by this we can run the file and get the desired Application/output - DIGITAL CLOCK which updates/refreshes for every 200 milliseoconds as mentioned in our code

SOURCE CODE

from tkinter import *
from time import strftime
clk = Tk()
clk.title("Military Clock")
lbl = Label(clk, font = ("NewTimesRoman", 90), background = "black", foreground = "white")
lbl.pack(anchor = 'center') def time(): k = strftime('%H:%M:%S') lbl.config(text = k) lbl.after(200, time) time() mainloop()

Download Complete Code

Comments

No comments yet

Download Packet

Reviews Report

Submitted by Krishna Prasad Deekonda (krishnadeekonda)

Download packets of source code on Coders Packet