[Python编程(第4版)].(Programming.Python.4th.Edition).Mark.Lutz.文字版
Example 14-6. PP4E\Internet\Email\PyMailGui\popuputil.py """ ################################################################### ...
class BusyBoxWait(PopupWindow): """ pop up blocking wait message box: thread waits main GUI event thread stays alive during wait ...
defaultsize = 80 def wrapLinesSimple(lineslist, size=defaultsize): "split at fixed position size" wraplines = [] for line in lin ...
return [(line + '\n') for line in lines] # put them back def wrapLines2(lines, size=defaultsize): # more uniform across lines "s ...
Its original HTML form is also displayed in its full glory in a popped-up web browser as before. This is a prototype. Because Py ...
HTMLParser.init(self) self.text = '[Extracted HTML text]' self.save = 0 self.last = '' def addtext(self, new): if self.save > ...
if name == 'main': to test me: html2text.py media\html2text-test\htmlmail1.html parse file name in commandline, display result i ...
in an upcoming section we’ll see a different approach that allows this module to be extended externally. Example 14-9. PP4E\Inte ...
pswd to name of a file holding your SMTP password, or an empty string to force programs to ask (in a console, or GUI) ---------- ...
# color (background, foreground); None means use defaults; font/color of # view windows can also be set interactively with texte ...
------------------------------------------------------------------------------- (required, for fetch) the Unicode encoding used ...
(optional) the maximum number of mail headers or messages that will be downloaded on each load request; given this setting N, Py ...
etc -- see PP4E\Gui\TextEditor\textConfig.py font = ('courier', 9, 'normal') height = 20 # Tk default: 24 lines width = 80 # Tk ...
new HTML help for 3.0/4E helpfile = 'PyMailGuiHelp.html' # see book examples package def showHtmlHelp(helpfile=helpfile): """ 3. ...
Use ',' between multiple addresses in To, Cc, and Bcc headers. Addresses may be given in the full '"name" ' form. Payloads and ...
May, 2010 (2.1 January, 2006) Programming Python, 4th Edition Mark Lutz, for O'Reilly Media, Inc. PyMailGUI is a multiwindow in ...
Example 14-16. PP4E\Internet\PyMailGui\altconfigs\mailconfig_train.py from mailconfig_book import * # get base in. (copied from ...
Copying alternative module variables to mailconfig attributes using dict and setattr Using a class for configuration to better ...
save files, though the user can limit their sizes with periodic deletions; users might also benefit from a prompt for deletions ...
Increased visibility for sent file We may want to add an explicit button for opening the sent-mails file. PyMailGUI already does ...
«
53
54
55
56
57
58
59
60
61
62
»
Free download pdf