criação esqueleto para interface GUI

This commit is contained in:
2024-09-07 19:13:28 +01:00
parent d4d2b04e3e
commit 11fd6403ba
2 changed files with 19 additions and 0 deletions

View File

@ -1,4 +1,5 @@
from modules.agente import Agente from modules.agente import Agente
import modules.gui as Gui
tamanho_mundo: tuple = (24, 24) tamanho_mundo: tuple = (24, 24)
@ -17,3 +18,5 @@ for m in range(0, tamanho_mundo[0]):
for n in range(0, tamanho_mundo[1]): for n in range(0, tamanho_mundo[1]):
print(f'{mundo[m][n].pontuacao:2} ', end='') print(f'{mundo[m][n].pontuacao:2} ', end='')
print('') print('')
Gui.App()

View File

@ -0,0 +1,16 @@
import tkinter as tk
from tkinter import ttk
class App(tk.Tk):
def __init__(self) -> None:
super().__init__()
# titulo e icone
self.title('Game Theory of Life')
self.iconbitmap()
# iniciar janela da aplicação
self.mainloop()
if __name__ == '__main__':
app = App()