idlelib.IOBinding
index
/usr/local/lib/python2.3/idlelib/IOBinding.py

# changes by dscherer@cmu.edu
#   - IOBinding.open() replaces the current window with the opened file,
#     if the current window is both unmodified and unnamed
#   - IOBinding.loadfile() interprets Windows, UNIX, and Macintosh
#     end-of-line conventions, instead of relying on the standard library,
#     which will only understand the local convention.

 
Modules
       
codecs
locale
os
re
sys
tempfile
tkFileDialog
tkMessageBox
types

 
Classes
       
IOBinding
SimpleDialog.SimpleDialog
EncodingMessage

 
class EncodingMessage(SimpleDialog.SimpleDialog)
    Inform user that an encoding declaration is needed.
 
  Methods defined here:
__init__(self, master, enc)
do_edit(self)
do_ok(self)

Methods inherited from SimpleDialog.SimpleDialog:
done(self, num)
go(self)
return_event(self, event)
wm_delete_window(self)

 
class IOBinding
     Methods defined here:
__init__(self, editwin)
askopenfile(self)
asksavefile(self)
close(self)
decode(self, chars)
Create a Unicode string
 
If that fails, let Tcl try its best
defaultfilename(self, mode='open')
encode(self, chars)
fixlastline(self)
get_saved(self)
loadfile(self, filename)
maybesave(self)
open(self, event=None, editFile=None)
print_window(self, event)
reset_undo(self)
save(self, event)
save_a_copy(self, event)
save_as(self, event)
set_filename(self, filename)
set_filename_change_hook(self, hook)
set_saved(self, flag)
updaterecentfileslist(self, filename)
Update recent file list on all editor windows
writefile(self, filename)

Data and other attributes defined here:
dirname = None
eol = r'(\r\n)|\n|\r'
eol_convention = '\n'
eol_re = <_sre.SRE_Pattern object>
filename = None
filename_change_hook = None
filetypes = [('Python and text files', '*.py *.pyw *.txt', 'TEXT'), ('All text files', '*', 'TEXT'), ('All files', '*')]
opendialog = None
savedialog = None

 
Functions
       
coding_spec(str)
Return the encoding declaration according to PEP 263.
 
Raise LookupError if the encoding is declared but unknown.
test()

 
Data
        BOM_UTF8 = '\xef\xbb\xbf'
coding_re = <_sre.SRE_Pattern object>
encoding = 'ansi_x3.4-1968'
idleConf = <idlelib.configHandler.IdleConf instance>