Don't reference removed files in Makefile
[python/dscho.git] / Lib / lib-stdwin / filewin.py
blobdf6aa7d7f777fb682dcd6750e4f26298dfca613c
1 # Module 'filewin'
2 # File windows, a subclass of textwin (which is a subclass of gwin)
4 import textwin
5 import __builtin__
8 # FILE WINDOW
10 def open_readonly(fn): # Open a file window
11 fp = __builtin__.open(fn, 'r')
12 w = textwin.open_readonly(fn, fp.read())
13 w.fn = fn
14 return w
16 def open(fn): # Open a file window
17 fp = __builtin__.open(fn, 'r')
18 w = textwin.open(fn, fp.read())
19 w.fn = fn
20 return w