-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
36 lines (24 loc) · 1022 Bytes
/
main.py
File metadata and controls
36 lines (24 loc) · 1022 Bytes
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
from appJar import gui
import fakeNewsPDF
import fakeNewsSpeaker
import fakeNewsWebsite
# create a GUI variable called app
app = gui("Fake News Generator", "400x100")
def buttonPress(buttonName):
if buttonName == "Generate PDF":
fakeNewsPDF.GeneratePDF()
app.showSubWindow("pdf")
elif buttonName == "Generate Website":
fakeNewsWebsite.GenerateWebsite()
app.showSubWindow("website")
elif buttonName == "Speak":
fakeNewsSpeaker.SayFakeNews()
app.addLabel("title", "Welcome to 18xR Fake News Generator")
app.addButtons(["Generate PDF", "Generate Website", "Speak"], buttonPress)
app.startSubWindow("pdf", modal=True)
app.addLabel("PDF was made successfully", "PDF was made successfully\nFind it in the pdf folder")
app.stopSubWindow()
app.startSubWindow("website", modal=True)
app.addLabel("Website was made successfully", "Website was made successfully\nFind fakenews.html in the website folder")
app.stopSubWindow()
app.go()