アプリケーションでこのコードを使用するたびに:
tkMessageBox.showinfo("Test", "Info goes here!")
メッセージ ボックスが表示されますが (想定どおり)、[OK] をクリックすると、ウィンドウ上の他のほとんどのウィジェットと一緒にボックスが消えます。他のウィジェットが消えないようにするにはどうすればよいですか?
これが私のコードです:
from Tkinter import *
import tkMessageBox
root = Tk()
root.minsize(600,600)
root.maxsize(600,600)
p1 = Label(root, bg='blue')
p1.place(width=600, height=600)
b1 = Button(p1, text="Test Button")
b1.place(x="30", y="50")
tkMessageBox.showinfo("Test", Info")
root.mainloop()