def display_map(fname):
    """
    view a text file (map) in high resolution
    """
    print("viewing ", fname)
    
    app = view_tk(None)
    app.show_grid_from_file(fname)
    app.title('Map View')
    #app.after(2000,vais_main_loop(app))
    
        # bind mouse and keyboard for interactivity
  #  frame = Frame(app, width=100, height=100)
   # frame.bind("<Button-1>", callback)
    app.canvas.bind("<Button-1>", callback)
    app.bind("<Key>", key)

    
    app.mainloop()
view a text file (map) in high resolution