Choose a simple task or game, and create a program that uses a graphical user interface (GUI) to run that task or game. Use Python’s Tkinter library.
All of the information the user needs, including the output of the program, needs to appear in the Tkinter app window. Do not rely on print statements to the Python window, for example, although those can still be useful for debugging your code.
The app needs to use one or more Tkinter variable objects such as StringVar and IntVar.
The app needs to use one or more functions connected to a widget using “command=function_name” option.
Grading Guidelines: (Programming Standard)
Level 0:
- Code is too similar to examples to provide evidence of programming proficiency
- Comments demonstrating understanding of the code not provided
Level 1:
- Get existing code to work with modifications
- Comments demonstrate only very basic understanding of the code
- The purpose of the app is not necessarily clear.
Level 2:
-
- Come up with a simple task or game that this GUI will run
- Modify existing code as much as you can to customize it for your own uses.
- Add comments to show understanding
- In this scenario, you ONLY demonstrate understanding if you write good comments.
Level 3:
-
-
- Create your own simple GUI.
- The GUI allows the user to complete a simple task or play a simple game.
- Provide evidence that you figured out how to write original Tkinter code rather than modifying existing code.
- Make use of other Python concepts, such as if/else logic, variables, functions, etc.
- Include one or more images in the GUI
-
Level 4:
-
- Create an original GUI that shows decent understanding of some basic Tkinter concepts.
- Include commands / object types / options / input types that were not provided in the examples
- Combine the GUI elements in an interesting and effective way
- Make the GUI do something that combines nicely with other Python concepts, such as modifying PIL images or ideas from the text game project.
If you can’t think of a project idea of your own, choose one of these:
I) Math quiz game
- Include a Label to display the question and 3-4 Button objects as answer choices.
- Change the text of the labels and buttons to go from one question to the next.
- Keep score.
II) Choose Your Own Adventure
- Include a text box and two Button objects.
- Change the choices and the text box description of the latest story update every time the user makes a selection.
III) Image Modification App
- Include two or more buttons to let the user select the image to modify.
- Include two or more buttons to choose what type of changes to make to the image. Possible modifications include switching colors, changing to grayscale, rotating, resizing