MCPcopy Index your code
hub / github.com/python/cpython / get_selection

Method get_selection

Lib/tkinter/filedialog.py:208–211  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

206 return os.path.split(filter)
207
208 def get_selection(self):
209 file = self.selection.get()
210 file = os.path.expanduser(file)
211 return file
212
213 def cancel_command(self, event=None):
214 self.quit()

Callers 4

ok_commandMethod · 0.95
filter_commandMethod · 0.95
ok_commandMethod · 0.45
ok_commandMethod · 0.45

Calls 2

expanduserMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected