Question: Create a graphical Python file that will serve as the world's worst text editor. You GUI should have an Entry widget where the user can

 Create a graphical Python file that will serve as the world's

Create a graphical Python file that will serve as the world's worst text editor. You GUI should have an Entry widget where the user can enter a filename, a Text widget where the contents of the file are displayed, two Button S- "Open" and "Save," and Label widgets as needed. If the "Open" button is clicked, the file that is named in the Entry widget should be opened and its contents displayed in the Text widget. Assume the file lives in the same directory as the program. If the file is not found, display an error message in the Text widget instead. If the "Save" button is clicked, the contents of the Text widget should be writen out to the file whose name appears in the Entry widget. Append the new text to the file if the file already exists. A prototype of the GUI is shown below. Your GUI does not have to match what is shown; it is for example purposes only. Feel free to experiment with sizing widgets, setting colors, changing fonts, etc. GUI Writer File name: lorem.txt File contents: lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Open Open Save Sove

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!