def max_displayed_rows(self): # Return how many items can be displayed in the primary subwindow for displaying the dict items return curses.LINES - 9