-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
76 lines (50 loc) · 1.47 KB
/
main.py
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
# @author Cesar Ramirez
# @program FabsealQuoteCalculator
# @version 2.0
from gui_help import *
from document_creator import *
# Create GuiHelp object
gui = GuiHelp()
# Create Quote object
quote = Quote()
# Page exit button
exit_a = False
# Creates loop to allow for back button
while not exit_a and not gui.exit:
# Creates first window for liner setup
exit_a = gui.create_first_window(quote)
# Back button
if exit_a:
break
# Next page exit button
exit_b = False
# Loop for back button
while not exit_b and not gui.exit:
# Creates second window for liner customizations
exit_b = gui.create_second_window(quote)
# Back button
if exit_b:
break
# Configures information from second window into customized liner order
quote.lining_system.liner.configure()
# Next page exit button
exit_c = False
# Loop for back button
while not exit_c and not gui.exit:
# Creates third window for quote customizations
exit_c = gui.create_third_window(quote)
# Back button
if exit_c:
break
# Updates dashboard of quote
gui.update(quote)
# DOCUMENT SECTION
doc = DocumentCreator(quote)
# Creates header paragraph
doc.create_header()
# Creates body
doc.create_general_body()
# Creates calculations body
doc.create_calculations_body()
# Saves document and terminates program
doc.save()