-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame_window.py
More file actions
26 lines (22 loc) · 789 Bytes
/
game_window.py
File metadata and controls
26 lines (22 loc) · 789 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
import tkinter as tk
from Society.society_frame import SocietyFrame
from Capital.capital_frame import CapitalFrame
class GameWindow():
def __init__(self, info):
# window_width = 1600
# window_height = 1000
self._info = info
self.geometry_text = str(info['Width']) + 'x' + str(info['Height'])
self.window = tk.Tk()
self.window.geometry(self.geometry_text)
self.add_society_frame()
self.add_capital_frame()
@property
def info(self):
return self._info
def add_society_frame(self):
self.society_frame = SocietyFrame(self)
self.society_frame.configure_frame()
def add_capital_frame(self):
self.capital_frame = CapitalFrame(self)
self.capital_frame.configure_frame()