Repository navigation
Expand file tree
/
Copy pathMenu.py
More file actions
36 lines (32 loc) · 1.83 KB
/
Copy pathMenu.py
File metadata and controls
36 lines (32 loc) · 1.83 KB
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
# CREATE MENU/MAIN PAGE
from tkinter import *
import tkinter as tk
import Open_Section as os
import To_do as td
# Create main window
master = tk.Tk()
# Set window title
master.title("Notes")
# Set window width, height and background color
master.geometry("2500x3000")
master.configure(bg='lightblue')
# Make menu buttons and set their attributes
Job = tk.Button (master, text="Job", command = lambda:os.open_section(master,"Job"), width = 20, bg = 'white', fg = 'black')
Job.grid(row=0, column=0)
School = tk.Button (master, text="School", command = lambda:os.open_section(master,"School"), width = 20, bg = 'white', fg = 'black')
School.grid(row=1, column=0)
FaF = tk.Button (master, text="Family and Friends", command = lambda:os.open_section(master,"FaF"), width = 20, bg = 'white', fg = 'black')
FaF.grid(row=2, column=0)
House = tk.Button (master, text="House", command = lambda:os.open_section(master,"House"), width = 20, bg = 'white', fg = 'black');
House.grid(row=3, column=0)
Travel = tk.Button (master, text="Travel", command = lambda:os.open_section(master,"Travel"), width = 20, bg = 'white', fg = 'black');
Travel.grid(row=4, column=0)
Extracurricular = tk.Button (master, text="Extracirricular", command = lambda:os.open_section(master,"Extracurricular"), width = 20, bg = 'white', fg = 'black');
Extracurricular.grid(row=5, column=0)
Expences = tk.Button (master, text="Expences", command = lambda:os.open_section(master,"Expences"), width = 20, bg = 'white', fg = 'black');
Expences.grid(row=6, column=0)
Passwords = tk.Button (master, text="Passwords", command = lambda:os.open_section(master,"Passwords"), width = 20, bg = 'white', fg = 'black');
Passwords.grid(row=7, column=0)
To_do = tk.Button (master, text="To-do List", command = lambda:td.choose_date(master), width = 20, bg = 'white', fg = 'black');
To_do.grid(row=8, column=0)
master.mainloop()