Answer To: Python Project 4 GUI – Mad Libs Game You will be making a mad libs game. A Mad Lib game is a phrasal...
Yogesh answered on May 13 2021
IMG-20200512-WA0005.jpg
IMG-20200512-WA0006.jpg
MadLips.py
from tkinter import *
# Background color define as Hexadecimal color code
bcolor = '#FFFAFA'
blank = ' ' * 71
win = Tk()
# Set window title...
win.title(blank + "Mad Libs")
# Set window size...
win.geometry('800x600')
# Set window background...
win.configure(bg=bcolor)
# Add labels
l1 = Label(win, text='Enter information for a new story: ', font=("Helvetica", 10), justify='right', bg=bcolor)
l1.place(x=-70, y=0, relx=0.5, rely=0)
l2 = Label(win, text='Person: ', font=("Helvetica", 10), justify='left', bg=bcolor)
l2.place(x=-80, y=50, relx=0.5, rely=0)
l3 = Label(win, text='Plural Noun: ', font=("Helvetica", 10), justify='left', bg=bcolor)
l3.place(x=-106, y=100, relx=0.5, rely=0)
l4 = Label(win, text='Verb: ', font=("Helvetica", 10), justify='left', bg=bcolor)
l4.place(x=-66, y=150, relx=0.5, rely=0)
l5 = Label(win, text='Adjective(s): ', font=("Helvetica", 10), justify='left', bg=bcolor)
l5.place(x=-107, y=200, relx=0.5, rely=0)
l6 = Label(win, text='Body Part: ', font=("Helvetica", 10), justify='left', bg=bcolor)
l6.place(x=-96, y=250, relx=0.5, rely=0)
l7 = Label(win, text=' Itchy ', font=("Helvetica", 10),...