A document from MCS 260 Fall 2021, instructor Emily Dumas. You can also get the notebook file.

MCS 260 Fall 2021 Homework 14

  • Course instructor: Emily Dumas


  • Complete the problems below, which ask you to write Python scripts.
  • Upload your python code directly to gradescope, i.e. upload the .py files containing your work. (If you upload a screenshot or other file format, you won't get credit.)


This homework assignment must be submitted in Gradescope by 10am CST on Tuesday, November 30, 2021.


This homework assignment focuses on tkinter and working with dates and times.


Collaboration is prohibited, and you may only access resources (books, online, etc.) listed below.

Resources you may consult

The course materials and other resources you are allowed to refer to for this homework are:

(Lecture videos are not linked on worksheets, but are also useful to review while working on worksheets. Video links can be found in the course course Blackboard site.)

I know project 4 is underway and this homework spans a holiday break

This homework is correspondingly short.

Point distribution

This homework assignment has 2 problems, numbered 2 and 3. Thus the grading breakdown is:

Points Item
2 Autograder
4 Problem 2
6 Total

What to do if you're stuck

Ask your instructor or TA a question by email, in office hours, or on discord.

( 1. There's no problem 1 )

Gradescope will show the results of the automated syntax check of all submitted files as the score for problem 1.

2. Counter

Make a GUI counter application that has a single button labeled "Increment", and a text label next to it. The text label should initially read 0, and every time the button is pressed, the number on the label should increase by one. A sample of what using the program should look like is shown below.

OOP optional

You can choose whether to do this by subclassing tkinter.Tk (which is recommended in general) or by building all the widgets in the main program (as in the first lecture demonstration of GUI programming).

Restricted methods note

  • The only module(s) you are allowed to import are: tkinter and tkinter.ttk
  • You can only use Python syntax and techniques we've covered in MCS 260


You've just completed the last homework assignment of MCS 260.

(All that remains is Project 4!)

Revision history

  • 2021-11-21 Initial publication