-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
30 lines (21 loc) · 936 Bytes
/
main.py
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
import tkinter as tk
from frames.create_player_frame import CreatePlayerFrame
from frames.load_player_frame import LoadPlayerFrame
from frames.players_frame import PlayersFrame
from frames.start_frame import StartFrame
from model import db_func as db
window = tk.Tk()
window.title("Fill Good")
window.geometry('500x500')
window['cursor'] = 'target'
create_player_frame = CreatePlayerFrame(window, 'black')
load_player_frame = LoadPlayerFrame(window, 'black')
players_frame = PlayersFrame(window, 'black')
start_frame = StartFrame(window, 'black')
start_frame.next_frame = players_frame.players_frame
players_frame.load_player_frame = load_player_frame.load_player_frame
players_frame.create_player_frame = create_player_frame.create_player_frame
load_player_frame.back_page_for_button_back = players_frame.players_frame
create_player_frame.back_page_for_button_back = players_frame.players_frame
db.make_db()
window.mainloop()