new HTML help for 3.0/4E
helpfile = 'PyMailGuiHelp.html' # see book examples package
def showHtmlHelp(helpfile=helpfile):
"""
3.0: popup HTML version of help file in a local web browser via webbrowser;
this module is importable, but html file might not be in current working dir
"""
import os, webbrowser
mydir = os.path.dirname(file) # dir of this module's filename
mydir = os.path.abspath(mydir) # make absolute: may be .., etc
webbrowser.open_new('file://' + os.path.join(mydir, helpfile))
##########################################################################
string for older text display: client responsible for GUI construction
##########################################################################
helptext = """PyMailGUI, version 3.0
May, 2010 (2.1 January, 2006)
Programming Python, 4th Edition
Mark Lutz, for O'Reilly Media, Inc.
PyMailGUI is a multiwindow interface for processing email, both online and
offline. Its main interfaces include one list window for the mail server,
zero or more list windows for mail save files, and multiple view windows for
composing or viewing emails selected in a list window. On startup, the main
(server) list window appears first, but no mail server connection is attempted
until a Load or message send request. All PyMailGUI windows may be resized,
which is especially useful in list windows to see additional columns.
Note: To use PyMailGUI to read and write email of your own, you must change
the POP and SMTP server names and login details in the file mailconfig.py,
located in PyMailGUI's source-code directory. See section 11 for details.
Contents:
0) VERSION ENHANCEMENTS
- LIST WINDOW ACTIONS
- VIEW WINDOW ACTIONS
- OFFLINE PROCESSING
- VIEWING TEXT AND ATTACHMENTS
- SENDING TEXT AND ATTACHMENTS
- MAIL TRANSFER OVERLAP
- MAIL DELETION
- INBOX MESSAGE NUMBER SYNCHRONIZATION
- LOADING EMAIL
- UNICODE AND INTERNATIONALIZATION SUPPORT
- THE mailconfig CONFIGURATION MODULE
- DEPENDENCIES
- MISCELLANEOUS HINTS ("Cheat Sheet")
...rest of file omitted...
- MISCELLANEOUS HINTS ("Cheat Sheet")
1112 | Chapter 14: The PyMailGUI Client