Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Added Readme #535

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Count Down Timer
  • Loading branch information
chandrabosep committed Nov 27, 2021
commit 7d6a05ae62099888946f52168bab13db2db6b768
44 changes: 44 additions & 0 deletions projects/GUI Count Down Timer/Count Down Timer GUI.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
from tkinter import *

t = 0


def set():
global t
t = t + int(entry.get())
return t


def start():
global t
if t > 0:
lbl.config(text=t)
t = t - 1
lbl.after(1000,start)
return t
elif t == 0:
lbl.config(text="go")


root = Tk()

root.geometry("380x350")
root.config(bg="black")

Label(root, text="Count Down Timer", font=("bell mt", 30),bg="black",fg="#00ff00").grid(row=0, column=0, padx=20)

Label(root,text="Select the seconds",font=("bell mt",20),bg="black",fg="#00ff00").grid(row=1,column=0,padx=20)

entry = Entry(root, font=("castellar", 15),fg="black")
entry.grid(row=2, column=0, padx=20,pady=15)

b1 = Button(root, text='Set Timer', font=("bell mt", 20),bg="black",fg="#00ff00",width=10,height=1, command=set)
b1.grid(row=3, column=0, padx=20,pady=10)

b2 = Button(root, text='Start Timer', font=("bell mt", 20),bg="black",fg="#00ff00",width=10,height=1, command=start)
b2.grid(row=4, column=0, padx=20,pady=10)

lbl = Label(root, text="", font=("algerian", 30),fg="#00ff00",bg="black")
lbl.grid(row=5, column=0, padx=20)

root.mainloop()
14 changes: 14 additions & 0 deletions projects/GUI Count Down Timer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<h1 align="center">Count Down Timer</h1>

<ol>
<li>Enter the seconds for the countdown</li>
<li>Click on set time for setting the timer</li>
<li>Then click start</li>
<ol>
<br><br>

![image](https://user-images.githubusercontent.com/70272542/143604324-b1a3d224-db09-498f-aa50-1154c05d849e.png)


![image](https://user-images.githubusercontent.com/70272542/143605022-c3468f86-9548-4780-bff0-18478817ddc9.png)