So I was creating a simple input window with Tkinter but whenever i have a showinfo displaying i can't type in the entry box
import tkinter as tk
from tkinter import *
from tkinter.messagebox import *
root = tk.Tk()
root.title("hello world")
root.minsize(700,600)
abc = StringVar()
abc.set("abc")
Entry(root, bd = 1, width = 50, textvariable=abc).pack(side = TOP)
showinfo('info', 'hello')
root.mainloop()
I'm not sure if there is something wrong with my Python (3.4) or tkinter but whenever i take out the showinfo line I can type into the Entry box but when its there i can't.
tkinter messagebox default dialog boxes are modal. What this means is that you need to close the child window(the tkinter messagebox) before you can return to the parent application.
So, there is nothing wrong with your python or tkinter; This behavior is intended.
Don't show the tkinter messagebox before the event loop is started. Try this:
import tkinter as tk
from tkinter import *
from tkinter.messagebox import *
def callback():
showinfo("info", "hello")
root = tk.Tk()
root.title("hello world")
root.minsize(700,600)
abc = StringVar()
abc.set("abc")
Entry(root, bd=1, width=50, textvariable=abc).pack(side=TOP)
Button(root, text="OK", command=callback).pack()
root.mainloop()