Posts

Showing posts from February 14, 2019

tkinter, creating frames with button and delay

Image
-1 so i am trying to create multiple frames with a button but with delays between them, so i press the button --> create frame1 --> wait 5 second --> create frame2 and so on. But the problem is that when i press the button it takes 5 seconds and displays the frame's at the same time. hopefully someone has any idea how to solve this. import tkinter as tk import time class lingo(tk.Tk): def __init__(self, *args, **kwargs): tk.Tk.__init__(self, *args, **kwargs) self.grid_rowconfigure(0,minsize=1080) self.grid_columnconfigure(0,minsize=1810) m = tk.Frame(self) m.grid(row=0, column=0,sticky="nsew") h1 = tk.Frame(m) h1.grid(row=0, column=0) e1 = tk.Entry(h1) e1.grid(row=0, column=0) def get_entry()