1990-10-13 16:23:40 -03:00
|
|
|
# Module 'filewin'
|
|
|
|
# File windows, a subclass of textwin (which is a subclass of gwin)
|
|
|
|
|
|
|
|
import textwin
|
1991-02-19 09:02:13 -04:00
|
|
|
from util import readfile
|
1990-10-13 16:23:40 -03:00
|
|
|
|
|
|
|
|
|
|
|
# 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
|