main window when viewing messages on the mail server ##############################################################################class pymailserver(pymailcommon)""customize pymailcommon for viewing mail still on servermixed with tktoplevelor frameadds main mail listboxmaps loadfetchdelete actions to email server inboxembeds messagecachewhich is mailtools mailfetcher""def actions(self)return ('load'self onloadserver)('open'self onopenmailfile)('write'self onwritemail)('none) separators ('view'self onviewformatmail)('reply'self onreplymail)('fwd'self onfwdmail)('save'self onsavemailfile)('delete'self ondeletemail)('none)('quit'self quitdef __init__(self)pymailcommon __init__(selfself cache messagecache guimessagecache(embeddednot inherited #self listbox insert(end'press load to fetch mail'def makewidgets(self)self addhelpbar(pymailcommon makewidgets(selfhelp barmain win only def addhelpbar(self)msg 'pymailgui python/tkinter email client (help)title button(selftext=msgtitle config(bg='steelblue'fg='white'relief=ridgetitle config(command=self onshowhelptitle pack(fill=xdef onshowhelp(self)""load,show text block string now uses html and webbrowser module here too user setting in mailconfig selects texthtmlor both always displays one or the otherhtml if both false ""if mailconfig showhelpastextfrom pymailguihelp import helptext popuputil helppopup(appnamehelptextshowsource=self onshowmysourceif mailconfig showhelpashtml or (not mailconfig showhelpastext)pymailgui implementation