Interface beta
This commit is contained in:
parent
c7e1436e50
commit
a7cfcbd70e
2
main.py
2
main.py
|
@ -1,4 +1,6 @@
|
|||
from visao.interface_texto import InterfaceTexto
|
||||
# from visao.interface_gui import interfaceGUI
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
interface = InterfaceTexto()
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
class EntidadeNaoEncontradaException(Exception):
|
||||
pass
|
||||
|
||||
|
|
@ -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()
|
Loading…
Reference in New Issue