Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Python Project 4 GUI – Mad Libs Game You will be making a mad libs game. A Mad Lib game is a phrasal template word game where you are prompted for a list of words to substitute for blanks in a story,...

1 answer below »
Python Project 4
GUI – Mad Libs Game
You will be making a mad libs game. A Mad Lib game is a phrasal template word game where you are prompted for a list of words to substitute for blanks in a story, before the reading the – often comical or nonsensical – story aloud. Your Mad Lib game’s graphical interface should be like the following:
Once the fields have been filled in, the program should product the following:
The story you will be building can be found below. You will substitute , , , and
ody part> based on the information entered in the text boxes.
The famous explorer had nearly given up a life long quest to find The Lost city of when one day, the found . A strong, , peculiar feeling overwhelmed the explorer. After all this time, the quest was finally over. A tear came down ’s
ody part>. And then, the parties promptly devoured . The moral of the store? Be careful what you for.
Information need to create GUI of Mad Lib Game
· Labels: Enter Information for a new story, person:, plural noun: ve
:, Adjective(s):, itchy, joyous, electric, body part (by selecting radio button)
· Entry: Person, plural noun, ve
· Check boxes: itchy, joyous, electric
· List box: body parts (user will select one)
· Button: click for story
· Text box: where the actual story goes.
· The text box should be empty until the person clicks on the button. If the user changes their choices and then clicks on the button again the text box should update and show the new story.
*Taken from Python Programming Third Edition for the absolute beginner by Michael Dawson
Grading Ru
ic
    Labels (9)
    20
    Entries (3)
    7
    Check Boxes (3)
    7
    List Box (1)
    2
    Button (1)
    2
    Text Box (1)
    2
    Story shows up when button is clicked
    10
    Insertions in the co
ect spot in the story (10)
    10
    Insertions using the co
ect case in the story (10)
    10
    All adjectives checked used, separated by commas
    10
    Old story disappears and new story takes it place when button is clicked again
    10
    Looks nice neat and professional
    10
    Total
    100
Page 1 of 2
Answered Same Day May 12, 2021

Solution

Yogesh answered on May 13 2021
145 Votes
IMG-20200512-WA0005.jpg
IMG-20200512-WA0006.jpg
MadLips.py
from tkinter import *
# Background color define as Hexadecimal color code
color = '#FFFAFA'
lank = ' ' * 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='Ve
: ', 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),...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here