Hi Guys,
I'm using the tkinter message box which works fine but I'm struggling to get code that checks if a messagebox is already open. So my working code is below but when the script is run again I need to ask if there is already a messagebox open.
def show_window(message):
I'm using the tkinter message box which works fine but I'm struggling to get code that checks if a messagebox is already open. So my working code is below but when the script is run again I need to ask if there is already a messagebox open.
def show_window(message):
# hide main window window = Tk() window.eval('tk::PlaceWindow %s center' % window.winfo_toplevel()) window.withdraw() # message box display window.wm_attributes("-topmost", 1) messagebox.showinfo("Information", message) window.deiconify() window.destroy() window.quit()