Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_command
Method · 0.95
filter_command
Method · 0.95
ok_command
Method · 0.45
ok_command
Method · 0.45
Calls
2
expanduser
Method · 0.80
get
Method · 0.45
Tested by
no test coverage detected