MCPcopy Index your code
hub / github.com/geekcomputers/Python / summary

Method summary

wiki/wiki.py:76–91  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

74 self.root.bind("<Return>", self.summary)
75
76 def summary(self, event):
77 self.searchbtn["text"] = "Searching..."
78 try:
79 self.query = wikipedia.page(self.question.get(), auto_suggest=True)
80 self.quesbox.delete(0, "end")
81 self.answer.delete("1.0", END)
82 self.answer.insert(END, (self.query.summary))
83
84 self.answer.pack()
85 except Exception as e:
86 error_msg = f"{e}"
87 messagebox.showerror("Error", error_msg)
88
89 self.searchbtn["text"] = "Search"
90
91 # Wikipeida page returns to many pages
92
93
94if __name__ == "__main__":

Callers 4

__init__Method · 0.95
search_wikiFunction · 0.45
wiki_searchFunction · 0.45

Calls 3

getMethod · 0.45
deleteMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected