Created
          October 2, 2023 19:27 
        
      - 
      
- 
        Save matefs/cd3b66719063dd899879343b2a05efdd to your computer and use it in GitHub Desktop. 
    alerta-tela-python
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import tkinter as tk | |
| from tkinter import messagebox | |
| # Cria uma janela tkinter (mas não a exibe) | |
| janela = tk.Tk() | |
| janela.withdraw() # Esconde a janela principal | |
| # Mostra o alerta diretamente | |
| messagebox.showinfo("Alerta", "Este é um alerta na tela!") | |
| # Termina a execução do script | |
| janela.destroy() | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment