-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.py
More file actions
38 lines (31 loc) · 825 Bytes
/
game.py
File metadata and controls
38 lines (31 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from game_window import GameWindow
from Society.society_frame import SocietyFrame
class Game():
def __init__(self, info):
self._info = info
@property
def info(self):
return self._info
@property
def window(self):
return self._window.window
def init_window(self):
self._window = GameWindow({
'Width': 1600,
'Height': 1000
# 'Society Frame': SocietyFrame(self)
})
def add_society_frame(self):
self.info['Society Frame'] = SocietyFrame()
def start(self):
self.init_tk()
def init_tk(self):
self.init_window()
self.window.mainloop()
if __name__ == '__main__':
game = Game({})
game.start()
print(game.info)
game.info['seila'] = 2
print(game.info)
# print()