criação esqueleto para interface GUI
This commit is contained in:
@ -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()
|
||||||
|
|||||||
@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user