blob: 6a224e7c0a4894c8bf0b92dea829666be7253132 [file] [log] [blame]
# Module 'filewin'
# File windows, a subclass of textwin (which is a subclass of gwin)
import textwin
from util import readfile
# FILE WINDOW
def open_readonly(fn): # Open a file window
w = textwin.open_readonly(fn, readfile(fn))
w.fn = fn
return w
def open(fn): # Open a file window
w = textwin.open(fn, readfile(fn))
w.fn = fn
return w