-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdPrograms.py
More file actions
94 lines (70 loc) · 3.02 KB
/
dPrograms.py
File metadata and controls
94 lines (70 loc) · 3.02 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
#Jesse A. Jones
#Version: 2023-08-14.91
from tkinter import *
import dstCalendarCalcGUI
import dateDaysFromOrAgo
import dstNightmareCycleCalc
import nonMetricCountDown
import nonMetricCountDown_MKII
import differentClock
import degreesClock
#This class contains all programs that start with the letter D.
class D(object):
def __init__(self, window = None):
self.window = window
self.soundsAllowed = False
#Holds quit button.
self.frameTop = Frame(self.window)
self.frameTop.pack(side = TOP)
FONT = "Ariel 20"
#Quit button.
self.quitButton = Button(self.frameTop, text = "Quit",
font = FONT, command = self.quitButtonAction)
self.quitButton.pack()
#Holds all other program buttons.
self.frameBottom = Frame(self.window)
self.frameBottom.pack(side = BOTTOM)
self.dstButton = Button(self.frameBottom, text = "DST Calendar Converter",
font = FONT, command = self.dstCal)
self.dstButton.grid(row = 0, column = 0)
self.dayButton = Button(self.frameBottom, text = "Day Difference Date Calc",
font = FONT, command = self.dateDiff)
self.dayButton.grid(row = 0, column = 1)
self.dayButton2 = Button(self.frameBottom, text = "DST Rough Nightmare Cycle Calculator",
font = FONT, command = self.nightCalc)
self.dayButton2.grid(row = 0, column = 2)
self.dayButton3 = Button(self.frameBottom, text = "Different Countdown Clock",
font = FONT, command = self.differentCountdown)
self.dayButton3.grid(row = 1, column = 0)
self.newCountButton = Button(self.frameBottom, text = "Different Countdown Clock MK II",
font = FONT, command = self.differentCountdownII)
self.newCountButton.grid(row = 1, column = 1)
self.diffClockButton = Button(self.frameBottom, text = "Different Clock (Not Mine)",
font = FONT, command = self.diffClk)
self.diffClockButton.grid(row = 1, column = 2)
self.degreesClockButton = Button(self.frameBottom, text = "360 Degree Clock",
font = FONT, command = self.degClock)
self.degreesClockButton.grid(row = 2, column = 0)
def quitButtonAction(self):
self.window.destroy()
def dstCal(self): #DONE (Needs some serious refactoring to look less gross)
dstCalendarCalcGUI.main()
def dateDiff(self):
dateDaysFromOrAgo.main()
def nightCalc(self):
dstNightmareCycleCalc.main()
def differentCountdown(self):
nonMetricCountDown.main()
def differentCountdownII(self):
nonMetricCountDown_MKII.main()
def diffClk(self):
differentClock.main()
def degClock(self):
degreesClock.main()
def main():
root = Tk()
root.title("Programs That Start With D")
om = D(root)
root.mainloop()
if __name__ == "__main__":
main()