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

Method show

Lib/tkinter/commondialog.py:32–50  ·  view source on GitHub ↗
(self, **options)

Source from the content-addressed store, hash-verified

30 return result # hook
31
32 def show(self, **options):
33
34 # update instance options
35 for k, v in options.items():
36 self.options[k] = v
37
38 self._fixoptions()
39
40 master = self.master
41 if master is None:
42 master = _get_temp_root()
43 try:
44 self._test_callback(master) # The function below is replaced for some tests.
45 s = master.tk.call(self.command, *master._options(self.options))
46 s = self._fixresult(master, s)
47 finally:
48 _destroy_temp_root(master)
49
50 return s
51
52 def _test_callback(self, master):
53 pass

Callers 12

askopenfilenameFunction · 0.45
asksaveasfilenameFunction · 0.45
askopenfilenamesFunction · 0.45
askopenfileFunction · 0.45
asksaveasfileFunction · 0.45
askdirectoryFunction · 0.45
askcolorFunction · 0.45
_showFunction · 0.45
IFunction · 0.45
askopenfileMethod · 0.45
asksavefileMethod · 0.45
askfilenameMethod · 0.45

Calls 8

_fixoptionsMethod · 0.95
_test_callbackMethod · 0.95
_fixresultMethod · 0.95
_get_temp_rootFunction · 0.90
_destroy_temp_rootFunction · 0.90
itemsMethod · 0.45
callMethod · 0.45
_optionsMethod · 0.45

Tested by

no test coverage detected