Staging
v0.5.1
v0.5.1
Revision c6143338b399ee4164321af027144d714597528b authored by cvs2svn on 01 July 1996, 18:34:03 UTC, committed by cvs2svn on 01 July 1996, 18:34:03 UTC
1 parent 88dc264
filewin.py
# Module 'filewin'
# File windows, a subclass of textwin (which is a subclass of gwin)
import textwin
import __builtin__
# FILE WINDOW
def open_readonly(fn): # Open a file window
fp = __builtin__.open(fn, 'r')
w = textwin.open_readonly(fn, fp.read())
w.fn = fn
return w
def open(fn): # Open a file window
fp = __builtin__.open(fn, 'r')
w = textwin.open(fn, fp.read())
w.fn = fn
return w
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...