-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmPrograms.py
More file actions
114 lines (85 loc) · 3.65 KB
/
mPrograms.py
File metadata and controls
114 lines (85 loc) · 3.65 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#Jesse A. Jones
#Version: 2023-08-14.91
from tkinter import *
import metricDateGUILIVE
import differentMetricDateCalc
import metricStopwatch
import metricCountDown
import newMoonPhaseCalc
import magicEightBall
import minecraftCalCalc
import mayanLongCount
import nineMaker
import metricDateToDate
#Holds programs that start with the letter M.
class M(object):
def __init__(self, window = None):
self.window = window
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.metricButtonII = Button(self.frameBottom, text = "Metric Date",
font = FONT, command = self.metricDateLiveAct)
self.metricButtonII.grid(row = 0, column = 0)
self.metricButton = Button(self.frameBottom, text = "Metric Date Calculator",
font = FONT, command = self.metricCalculator)
self.metricButton.grid(row = 0, column = 1)
self.stopwatchButton = Button(self.frameBottom, text = "Metric Stopwatch",
font = FONT, command = self.stopwatch)
self.stopwatchButton.grid(row = 0, column = 2)
self.countdownButton = Button(self.frameBottom, text = "Metric Countdown",
font = FONT, command = self.metricCountDown)
self.countdownButton.grid(row = 1, column = 0)
self.moonButton = Button(self.frameBottom, text = "Moon Phase Calculator MK II",
font = FONT, command = self.moonCalc)
self.moonButton.grid(row = 1, column = 1)
self.eightButton = Button(self.frameBottom, text = "Magic Eight Ball",
font = FONT, command = self.magicEightBall)
self.eightButton.grid(row = 1, column = 2)
self.craftmineButton = Button(self.frameBottom, text = "Minecraft Calendar Calc",
font = FONT, command = self.mcCalc)
self.craftmineButton.grid(row = 2, column = 0)
self.mayaButton = Button(self.frameBottom, text = "Mayan Long Count Calendar Calc",
font = FONT, command = self.mayanCalc)
self.mayaButton.grid(row = 2, column = 1)
self.nineButton = Button(self.frameBottom, text = "Maker of Nines",
font = FONT, command = self.makeNines)
self.nineButton.grid(row = 2, column = 2)
self.metricToNormButton = Button(self.frameBottom, text = "Metric Date to Normal Date",
font = FONT, command = self.toNormConv)
self.metricToNormButton.grid(row = 3, column = 0)
#Quits program.
def quitButtonAction(self):
self.window.destroy()
def metricDateLiveAct(self):
metricDateGUILIVE.main()
def metricCalculator(self):
differentMetricDateCalc.main()
def stopwatch(self):
metricStopwatch.main()
def metricCountDown(self):
metricCountDown.main()
def moonCalc(self):
newMoonPhaseCalc.main()
def magicEightBall(self):
magicEightBall.main()
def mcCalc(self):
minecraftCalCalc.main()
def mayanCalc(self):
mayanLongCount.main()
def makeNines(self):
nineMaker.main()
def toNormConv(self):
metricDateToDate.main()
def main():
root = Tk()
root.title("Programs That Start With M")
om = M(root)
root.mainloop()
if __name__ == "__main__":
main()