def drawgraph(fileloc=""): # grab path from path_entry # run it through histparse # call function to draw graph try: if fileloc == "": fileloc = str(path.get()) # these two lines likely to be removed histgraph = histparse(fileloc) # due to everything moving into Graphistory g = Graphistory(fileloc) urlcenter = str(url.get()) if fromto.get() == 0: g.draw_from_site(urlcenter, number_of_node=nodes.get()) else: g.draw_to_site(urlcenter, number_of_node=nodes.get()) except Exception as e: tkMessageBox.showerror(message=e) pass
from Graphistory import Graphistory if __name__ == "__main__": graph = Graphistory("History") graph.draw_from_site("facebook.com") #print urlformat("http://cat.pdx.edu/network.html")