Pausing a script - 1 Minute Python Tutorial #shorts

preview_player
Показать описание
1-minute coding tutorial series: how to wait/sleep for a given amount of time in Python.

If you want to improve your coding skills and can spare 60 seconds a day to learn something new, then make sure to subscribe, as I publish a new tutorial every day!

If you can afford it and you wish to support my work, so that I can keep creating these videos consider becoming a patron or buying me a coffee:

#shorts #python #coding #tutorial #howto
Рекомендации по теме
Комментарии
Автор

Videos are getting better and better. Keep up the great work and thanks

forkandnoodles
Автор

Thank you so much been struggling on my project

alltalksports
Автор

"""
Can you help
I want to draw a line slowly on screen using python tkinter.
time.sleep function does not help
The program waits for some time and draws
the entire line but not slowly.
My code is as below :
"""
import time
from tkinter import *

mw = Tk()
mw.minsize(width=600, height=600)
mc = Canvas(mw, width = 500, height = 500, bg = "yellow")
mc.place(x=50, y =0)

startpoint = 0

for i in range( 0, 500):
mc.create_line(startpoint, 100, i, 100)
startpoint = i
time.sleep(0.002)

mw.mainloop()

mukundathavale