how to make a clock usig pytohn

import sys
from  tkinter import *
import time 

def times():
    current_time=time.strftime("%H:%M:%S") 
    clock.config(text=current_time)
    clock.after(200,times)


root=Tk()
root.geometry("500x250")
clock=Label(root,font=("times",50,"bold"),bg="black",fg='blue')
clock.grid(row=2,column=2,pady=25,padx=100)
times()

digi=Label(root,text="Digital clock",font="times 24 bold",fg="violet")
digi.grid(row=0,column=2)

nota=Label(root,text="hours   minutes   seconds   ",font="times 15 bold")
nota.grid(row=3,column=2)

root.mainloop()

3.6
5
Dida 70 points

                                    please subscribe my channel - https://bit.ly/2Me2CfB

from tkinter import *
import time
import playsound

root = Tk()
root.geometry('600x175')
root.title("Clock")
root.config(background='black')

def clock():
    main_time = time.strftime("%H:%M:%S:%p")
    lbl.config(text=main_time)
    lbl.after(1000, clock)

lbl = Label(root, text="", font=('Digital Display Regular', 90), bg="black", fg="cyan")
lbl.pack(anchor=CENTER)

clock()
root.mainloop()

3.6 (5 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
how to make a working clock with python clock code python how to use clock in python make an clock in python pythoon how to use time clock create clock python python clock script clock in clock out app on python how to make a clock in pyhton how to make a clock inpyhton clock python project how to use a clock in python how to make a clock usig pytohn What is clock() function? python clock() in python clock module in python how to show clock in python clock program python start clock new python start clock python where do i get clock function python how to make a very simple clock using python which shows time infinitely how to make a very simple clock using python python clock time python program to generate clock time create live clock python how to print clock in python clock figure in python how to make a clock using python how to create a clock in python how to make a clock in phython draw a clock in python using time.clock python make clock python make clock using python clock in python script clock in Python with real time get clock python generate clock python python make clock clock time in python get a clock python clock function in python clock in pythobn how to make a real time clock in python import clock in python a simple alarm clock in python making a clock app in python clock using python clock function python basic clock with python how to make a working clock in python clock python how to make a python clock how to build a clock in python clock program in python create clock in python python make a clock clock() python how to make clock in python clock in python python clock clock time python create a clock in python making a clock in python how to write a timer in python make a clock using python python digital clock how to make a clock question in python digital clock python clock python code how to show digital clock on python python get clock how to make an analog clock in python make a clock in puthon how to make a alarm clock in python make gui clock in python python program settings by clock how to code a clock in python python clock visual python3 clock tkinter tkinter clock python how to set up a clock in python clock for python how to make a clock python display clock python beautiful digital clock in python python gui clock making a gui digital clock in python simple clock in python python code to make a clock python how to make a clock Create Digital Clock with Python how to make digital clock using python python see what the clock is python live clock python clock program how to code a clock in python. how to make a clock in python python clock code how to build clock using python how to create clock in python
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source