Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

run a loop in tkinter

from tkinter import *

root = Tk()

def task():
    print("hello")
    root.after(2000, task)  # reschedule event in 2 seconds

root.after(2000, task)
root.mainloop()
Comment

PREVIOUS NEXT
Code Example
Python :: how to save a neural network pytorch 
Python :: no such table: django_session admin 
Python :: how to restart program in python 
Python :: how to close a webpage using selenium driver python 
Python :: apostrophe in python 
Python :: find by class bs4 
Python :: how to check which submit button is clicked in flask wtf 
Python :: python permutation 
Python :: django drop database postgres 
Python :: channel lock command in discord.py 
Python :: pandas groupby percentile 
Python :: remove all whitespace from string python 
Python :: decorator python 
Python :: python django shell command 
Python :: upload py file using flask 
Python :: python ftp login 
Python :: discord music queue python 
Python :: python numpy array delete multiple columns 
Python :: pathlib get extension 
Python :: how to check whole number in python 
Python :: how to open xml file element tree 
Python :: drop column with nan values 
Python :: Filter pandas DataFrame by substring criteria 
Python :: create an empty dataframe 
Python :: python pywhatkit 
Python :: user group template tag django 
Python :: numpy random.permutation 
Python :: get one from dataloader 
Python :: inline if python 
Python :: python test is nan 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =