'If data exists, load it into viewer, otherwise try to load file.
fileName - string, should be an absoulute filename'

def __init__(self, parent, title, fileName=None, data=None):

    Toplevel.__init__(self, parent)
    self.configure(borderwidth=5)
    self.geometry(('=%dx%d+%d+%d' % (625, 500, (parent.winfo_rootx() + 10), (parent.winfo_rooty() + 10))))
    self.bg = '#ffffff'
    self.fg = '#000000'
    self.CreateWidgets()
    self.title(title)
    self.protocol('WM_DELETE_WINDOW', self.Ok)
    self.parent = parent
    self.textView.focus_set()
    self.bind('<Return>', self.Ok)
    self.bind('<Escape>', self.Ok)
    if (data is not None):
        self.textView.insert(0.0, data)
    else:
        self.LoadTextFile(fileName)
    self.textView.config(state=DISABLED)
