![]() 5 Be sure to use the field names provided in the comments in your starter code. The New command should then clear the text widget and the entry widget. Include command buttons labeled Open, Save, and New that allow the user to open, save, and create new files. The user should be able to scroll through the text by manipulating a vertical scrollbar. The GUI should include a labeled entry field for the filename and a multiline text widget for the text of the file. ![]() Instructions breezypythongui.py test.txt texteditor.py + 2 File: texteditor.py 3 Project 8.8 4 # Write a GUl-based program that allows the user to open, edit, and save text files. END 41 NORMAL = Tkinter.NORMAL 42 DISABLED = Tkinter.DISABLED 43 NONE - Tkinter.NONE Text Editor GUI Grading You will not be graded on this lab. ![]() E 38 W = Tkinter.W 39 CENTER = Tkinter.CENTER 40 END = Tkinter. 21 An example of the program is shown below: Text Editor 22 New Open Save 23 24 import sys 25 versionNumber = sys.version_info.major 26 if version Number = 3: 27 import tkinter 28 import tkinter.simpledialog 29 Tkinter = tkinter 30 tkSimpleDialog - tkinter.simpledialog 31 else: 32 import Tkinter 33 import tkSimpleDialog 34 35 N = Tkinter.N 36 S = Tkinter.s 37 E = Tkinter. Version 1.1 now also 20 runs on either Python 3.x.x or Python 2.x.x (updated 2-4-2013). 17 18 RELEASE NOTES: Version 1.1 now includes the class EasyPanel, for organizing 19 subpanes in windows and dialogs (updated 12-19-2012). 15 16 INSTALLATION: Put this file where Python can see it. 12 13 PLATFORMS: The package is a wrapper around Tkinter (Python 3.x) and should 14 run on any platform where Tkinter is available. Its capabilities mirror those 10 of BreezyGUI and BreezySwing, open-source frameworks for writing GUIs in Java, 11 written by Ken Lambert and Martin Osborne. 7 8 LICENSE: This is open-source software released under the terms of the 9 GPL (). 2 File: breezypythongui.py 3 Version: 1.1 4 Copyright 2012, 2013 by Ken Lambert 5 6 Resources for easy Python GUIS. Be sure to use the field names provided in the comments in your starter code. Instructions breezypythongui.py test.txt texteditor.py 1 * Write a GUI-based program that allows the user to open, edit, and save text files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |