diff --git a/projects/Alarm clock/README.md b/projects/Alarm clock/README.md new file mode 100644 index 000000000..b0e6eaab9 --- /dev/null +++ b/projects/Alarm clock/README.md @@ -0,0 +1,8 @@ +

Alarm Clock

+ + +

Select your time and and click set alarm

+ +![image](https://user-images.githubusercontent.com/70272542/142355637-6bda8e40-02bf-4bb6-955c-d7d7def5fc55.png) + +

And that's it. Congratulations You have built your First Alarm clock in python👏👏

diff --git a/projects/GUI Count Down Timer/Count Down Timer GUI.py b/projects/GUI Count Down Timer/Count Down Timer GUI.py new file mode 100644 index 000000000..f4bb64c6e --- /dev/null +++ b/projects/GUI Count Down Timer/Count Down Timer GUI.py @@ -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() diff --git a/projects/GUI Count Down Timer/README.md b/projects/GUI Count Down Timer/README.md new file mode 100644 index 000000000..7865ff741 --- /dev/null +++ b/projects/GUI Count Down Timer/README.md @@ -0,0 +1,14 @@ +

Count Down Timer

+ +
    +
  1. Enter the seconds for the countdown
  2. +
  3. Click on set time for setting the timer
  4. +
  5. Then click start
  6. +
      +

      + +![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) + diff --git a/projects/GUI Rock-Paper-Scissors Game/README.md b/projects/GUI Rock-Paper-Scissors Game/README.md new file mode 100644 index 000000000..3e53914de --- /dev/null +++ b/projects/GUI Rock-Paper-Scissors Game/README.md @@ -0,0 +1,13 @@ +

      Rock Paper Scissors Game GUI

      + +

      Import Required Library

      +
        +
        from tkinter import *
        +
        from tkinter import ttk
        +
        from random import *
      +

      Select Rock Paper or Scissors and click on spin the top label shows whos turn it is and botton label shows who won either computer or you.

      + +![image](https://user-images.githubusercontent.com/70272542/142356847-f734c448-b4b3-407a-9783-fd8af4ecb4e2.png) +
      +

      And that's it. Congratulations You have built your First Rock-Paper-Scissors GUI Game + in python👏👏