-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhPrograms.py
More file actions
59 lines (43 loc) · 1.63 KB
/
hPrograms.py
File metadata and controls
59 lines (43 loc) · 1.63 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
#Jesse A. Jones
#Version: 2023-08-14.91
from tkinter import *
import bigNumberUnderstander
import hexEncoder
import hexClock
#Contains programs that have titles starting with the letter H.
class H(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.bigNumButton = Button(self.frameBottom, text = "Huge Number Converter",
font = FONT, command = self.hugeNumber)
self.bigNumButton.grid(row = 0, column = 0)
self.hexButton = Button(self.frameBottom, text = "Hexadecimal Encoder",
font = FONT, command = self.hexCode)
self.hexButton.grid(row = 0, column = 1)
self.hexClockButton = Button(self.frameBottom, text = "Hexadecimal Clock",
font = FONT, command = self.hexClock)
self.hexClockButton.grid(row = 0, column = 2)
def quitButtonAction(self):
self.window.destroy()
def hugeNumber(self):
bigNumberUnderstander.main()
def hexCode(self):
hexEncoder.main()
def hexClock(self):
hexClock.main()
def main():
root = Tk()
root.title("Programs that Start with H")
om = H(root)
root.mainloop()
if __name__ == "__main__":
main()