25 lines
580 B
Python
25 lines
580 B
Python
import tkinter as tk
|
|
from tkinter import ttk
|
|
|
|
|
|
class Frame_Mapa(ttk.Frame):
|
|
def __init__(self, dimensao: tuple[int, int]):
|
|
self.n_linhas = dimensao[0]
|
|
self.n_colunas = dimensao[1]
|
|
|
|
|
|
class App(tk.Tk):
|
|
def __init__(self) -> None:
|
|
super().__init__()
|
|
# titulo e icone
|
|
self.title('Game Theory of Life')
|
|
self.iconbitmap()
|
|
# definir frames dentro da janela principal
|
|
self.frame_mapa = Frame_Mapa((10, 10))
|
|
# iniciar janela da aplicação
|
|
self.mainloop()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
app = App()
|