This function instantiates a new tccpage2.TCCPage instance with navigational links
appropriate for the index page. These links should be
similar to the ones generated in Section 23.4, “MonthCell.__pageFrame(): Set up a basic
page”.
, , and Contents are
dead links, since this is a top-level page.
points to Shipman's homepage.
# - - - P a g e F r a m e
def pageFrame():
'''Sets up the tccpage2.TCCPage instance for the index page.
[ return a new tccpage2.TCCPage instance with navigation
set up for the index page ]
'''
#-- 1 --
# [ navList := a list of tccpage2.NavLink instances
# representing the navigational features ]
navList = (
tccpage2.NavLink ( 'Next', [] ),
tccpage2.NavLink ( 'Previous', [] ),
tccpage2.NavLink ( 'Contents', [] ),
tccpage2.NavLink ( 'Home',
[("Shipman's Home Sweet Homepage", HOME_PAGE_URL)] ) )
#-- 2 --
return tccpage2.TCCPage ( INDEX_PAGE_TITLE, navList,
logoImage=ZDP_LOGO, logoLink=ZDP_URL, cssUrl=CSS_URL )