[Python编程(第4版)].(Programming.Python.4th.Edition).Mark.Lutz.文字版
Alternative Configurations and Accounts So far, we’ve mostly seen PyMailGUI being run on an email account I created for this boo ...
Multiple Windows and Status Messages Finally, PyMailGUI is really meant to be a multiple-window interface—a detail that most of ...
messages when PyMailGUI is started from another program, such as the PyDemos or PyGadgets launcher bar GUIs. These status messag ...
MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From:
[email protected]
To ...
list window layout and actions, though, is similar for both and is shared in the common superclass to avoid redundancy and simpl ...
command line, and automatically opens them when the GUI starts up. This is used by the PyDemos launcher of Chapter 10, for examp ...
a cache that keeps track of mail already loaded wraplines.py utility for wrapping long lines of messages html2text.py rudimentar ...
def init(self): windows.ComponentWindow.init(self) PyMailServer.init(self) class PyMailFileWindow(PyMailFile, windows.PopupWindo ...
from tkinter import * from tkinter.simpledialog import askstring from tkinter.filedialog import SaveAs, Open, Directory from tki ...
superclass. The window subclasses mostly just customize the superclass to map mail Load and Delete calls to the server or a loca ...
from ViewWindows import ViewWindow, WriteWindow, ReplyWindow, ForwardWindow #################################################### ...
else: Button(tools, text=title, command=callback).pack(side=LEFT) add multiselect listbox with scrollbars listwide = mailconfig. ...
browser = ScrolledText(window) browser.insert('0.0', fulltext) browser.pack(expand=YES, fill=BOTH) else: 3.0/4E: more useful PyE ...
non-multipart, content-type text/HTML (rude but true!) if type == 'text/html': if ((not mailconfig.verifyHTMLTextOpen) or askyes ...
but the view window superclass of edit windows performs decoding on all displayed headers (the extra Subject decode is a no-op); ...
contSave not threaded: disables all other actions; """ msgnums = self.selectedMsgs() if not msgnums: showerror(appname, 'No mess ...
if not msgnums: # always verify here showerror(appname, 'No message selected') else: if askyesno(appname, 'Verify delete %d mail ...
msgtype = msg.get_content_maintype() # no is_multipart yet msgline = (msgtype == 'multipart' and '') or ' ' msgline += '%03d' % ...
this may trigger full text encoding on sends, but the main text is also already in fully decoded form: could be in any Unicode s ...
text is ascii, and the Python 3.1 email package is partly broken; """ def actions(self): return [ ('Open', self.onOpenMailFile), ...
«
51
52
53
54
55
56
57
58
59
60
»
Free download pdf