Assignment 4
GUI Component
Submit before 11:30 Saturday February 10
Overview
For this assignment, you will create a MadLib story interface so that it is encapsulated in a class. You will then demonstrate how it works as a component by placing two story intefaces in one frame.
Instructions and code writing
- Using the GUI example from class, create a MadLib interface so that it creates a story (possibly very short) based on three text entries.
- Add a clear button to your MadLib interface.
- Following the example from class, place your MadLib story and components within a class called MadLibFrame. It should inherit the Frame class. Instead of using global variables, any variables shared among methods should be referenced as instance variables.
- Create a new GUI app that constructs two of your MadLibFrames and places them side-by-side in a new frame. This new frame does not need to be part of another class. Show that both MadLib stories work independently of each other.
Deliverable
Create a text, word or pdf file that contains the following:
- A statement that summarizes your completion of the lab. The statement should include any help you received or whether you discussed your assignment with others. Keep in mind that you may not copy code from others or allow others to copy your code.
- A summary of the files included in the zip folder
- Demonstrations that show that your code works. This might include a screen shot of your stories working side-by-side.
Put your doc file and your py files in a folder, zip it, and submit it on D2L. Check that your submitted zip file is complete.
Grading
The assignment is worth 5 points. Full credit will be awarded to complete, accurate and well presented submissions. Points will be deducted for the following:
- Missing requirements
- Inaccuracies (possibly excepting minor ones)
- Poorly written explanations
- Code constructs or style not used in class