Interface beta

This commit is contained in:
Emersonjsc 2025-06-12 23:00:56 -03:00
parent c7e1436e50
commit a7cfcbd70e
3 changed files with 27 additions and 1 deletions

View File

@ -1,4 +1,6 @@
from visao.interface_texto import InterfaceTexto
# from visao.interface_gui import interfaceGUI
if __name__ == "__main__":
interface = InterfaceTexto()

View File

@ -1,2 +1,4 @@
class EntidadeNaoEncontradaException(Exception):
pass

View File

@ -1 +1,23 @@
from tkinter import *
import tkinter as tk
class interfaceGUI:
def __init__(self):
# self.bd = BancoDeDados()
self.proximo_id = 1
self.root = tk.Tk()
self.root.title("Minha Janela")
self.root.geometry("300x200")
self.root.configure(bg="#1e1e1e") # fundo escuro
label = tk.Label(self.root, text="Texto", bg="#1e1e1e", fg="white")
botao = tk.Button(self.root, text="OK", bg="#333333", fg="white")
def executar(self):
self.janela_principal();
def janela_principal(self):
self.root.mainloop()
app = interfaceGUI()
app.executar()