-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathePrograms.py
More file actions
99 lines (73 loc) · 3.21 KB
/
ePrograms.py
File metadata and controls
99 lines (73 loc) · 3.21 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#Jesse A. Jones
#Version: 2023-08-14.91
from tkinter import *
import eightPortionClock
import eightPortionClockCalc
import easterCalc
import eruvarianClock
import eruvarianCalendarAndClock
import eruvarianReckoningCalculator
import rivendellCalendarCalc
import eridanianClock
#Contains all programs that start with the letter E
class E(object):
def __init__(self, window = None):
self.window = window
self.soundsAllowed = False
self.frameTop = Frame(self.window)
self.frameTop.pack(side = TOP)
FONT = "Ariel 20"
self.quitButton = Button(self.frameTop, text = "Quit",
font = FONT, command = self.quitButtonAction)
self.quitButton.pack()
self.frameBottom = Frame(self.window)
self.frameBottom.pack(side = BOTTOM)
self.eightButton = Button(self.frameBottom, text = "Eight Day Portion Clock",
font = FONT, command = self.eightClock)
self.eightButton.grid(row = 0, column = 0)
self.eightCalcButton = Button(self.frameBottom, text = "Eight Day Portion Clock Calculator",
font = FONT, command = self.eightClockCalc)
self.eightCalcButton.grid(row = 0, column = 1)
self.easterCalcButton = Button(self.frameBottom, text = "Easter Calculator",
font = FONT, command = self.easterCalc)
self.easterCalcButton.grid(row = 0, column = 2)
self.eruClockButton = Button(self.frameBottom, text = "Eru'varian Clock",
font = FONT, command = self.eruClock)
self.eruClockButton.grid(row = 1, column = 0)
self.eruCalButton = Button(self.frameBottom, text = "Eru'varian Calendar and Clock",
font = FONT, command = self.eruCal)
self.eruCalButton.grid(row = 1, column = 1)
self.eruCalcButton = Button(self.frameBottom, text = "Eru'varian Reckoning Calculator",
font = FONT, command = self.eruCalc)
self.eruCalcButton.grid(row = 1, column = 2)
self.elfCalcButton = Button(self.frameBottom, text = "Elven Calendar Calculator",
font = FONT, command = self.elfCalc)
self.elfCalcButton.grid(row = 2, column = 0)
self.elfCalcButton = Button(self.frameBottom, text = "Eridian Clock",
font = FONT, command = self.eriClock)
self.elfCalcButton.grid(row = 2, column = 1)
def quitButtonAction(self):
self.window.destroy()
def eightClock(self):
eightPortionClock.main()
def eightClockCalc(self):
eightPortionClockCalc.main()
def easterCalc(self):
easterCalc.main()
def eruClock(self):
eruvarianClock.main()
def eruCal(self):
eruvarianCalendarAndClock.main()
def eruCalc(self):
eruvarianReckoningCalculator.main()
def elfCalc(self):
rivendellCalendarCalc.main()
def eriClock(self):
eridanianClock.main()
def main():
root = Tk()
root.title("Programs that Start with E")
om = E(root)
root.mainloop()
if __name__ == "__main__":
main()