Here is a ui file reader that uses the os and ui modules that populates a tableview with files in a directory and allows you to click the files to view the contents in a text view.

Easy to tweak to make more complex applications.

Github Repo