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

Method get_filter

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

Source from the content-addressed store, hash-verified

199 self.set_selection(tail)
200
201 def get_filter(self):
202 filter = self.filter.get()
203 filter = os.path.expanduser(filter)
204 if filter[-1:] == os.sep or os.path.isdir(filter):
205 filter = os.path.join(filter, "*")
206 return os.path.split(filter)
207
208 def get_selection(self):
209 file = self.selection.get()

Callers 3

goMethod · 0.95
dirs_select_eventMethod · 0.95
filter_commandMethod · 0.95

Calls 5

expanduserMethod · 0.80
getMethod · 0.45
isdirMethod · 0.45
joinMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected