-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrPrograms.py
More file actions
83 lines (61 loc) · 2.59 KB
/
rPrograms.py
File metadata and controls
83 lines (61 loc) · 2.59 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
#Jesse A. Jones
#Version: 2023-08-14.91
from tkinter import *
import reformedCalendarCalcGUI
import romeNumConv
import relativityCalculator
import romanNumeralClock
import reformedCalendarLive
import reformedCalendarCalcII
#Holds all programs that start with the letter R.
class R(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.calButton = Button(self.frameBottom, text = "Reformed Calendar Calculator",
font = FONT, command = self.refCalCalc)
self.calButton.grid(row = 0, column = 0)
self.romeButton = Button(self.frameBottom, text = "Roman Numeral Converter",
font = FONT, command = self.romanNum)
self.romeButton.grid(row = 0, column = 1)
self.relativeity = Button(self.frameBottom, text = "Relativity Calculator",
font = FONT, command = self.relative)
self.relativeity.grid(row = 0, column = 2)
self.romeClock = Button(self.frameBottom, text = "Roman Numeral Clock and Calendar",
font = FONT, command = self.romeCalClock)
self.romeClock.grid(row = 1, column = 0)
self.refLiveButton = Button(self.frameBottom, text = "Reformed Calendar Live Edition",
font = FONT, command = self.refCalLive)
self.refLiveButton.grid(row = 1, column = 1)
self.refCalIIButton = Button(self.frameBottom, text = "Reformed Calendar Calculator Mk II",
font = FONT, command = self.refCalCalcII)
self.refCalIIButton.grid(row = 1, column = 2)
def quitButtonAction(self):
self.window.destroy()
def refCalCalc(self):
reformedCalendarCalcGUI.main()
def romanNum(self):
romeNumConv.main()
def relative(self):
relativityCalculator.main()
def romeCalClock(self):
romanNumeralClock.main()
def refCalLive(self):
reformedCalendarLive.main()
def refCalCalcII(self):
reformedCalendarCalcII.main()
def main():
root = Tk()
root.title("Programs Starting With R")
om = R(root)
root.mainloop()
if __name__ == "__main__":
main()