How do you not open a Tkinter window when the message is out? Python



  • Hello, everyone! I have a question like this: working with me. tkinterthe library. messagebox♪ When performing functions messagebox.showerror("Ошибка", "ERROR") or messagebox.showinfo("Уведомление", "Вы успешно зарегистрированы в системе")The window opens. Tk♪ I've made sure it's shut down, but it's not a very good interface with that window. ♪ ♪

    If you know how, help me, please.



  • Just hide the main window, something... ♪

    import tkinter as tk
    from tkinter import messagebox
    

    root = tk.Tk()
    root.withdraw()

    messagebox.showinfo("Уведомление", "Вы успешно зарегистрированы в системе")



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2