To import it use:
>>> from readerlib import read
This example will be using tkinter(python3) or Tkinter (python2)
First we define the root and others
from readerlib import read
from tkinter import *
from tkinter import filedialog
root = Tk()
To understand this, you must have a good knowledge of tkinter, if not, go here
file = filedialog.askopenfilename()
readfile = read(file=file)
text = Text(root)
text.grid()
text.insert(0.0, readfile)
root.mainloop()
As you can see, there is no need for readfile.read(), the function read does that for you
You're on your own from here, Enjoy CODING