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

Function collect_tkinter

Lib/test/pythoninfo.py:445–461  ·  view source on GitHub ↗
(info_add)

Source from the content-addressed store, hash-verified

443
444
445def collect_tkinter(info_add):
446 try:
447 import _tkinter
448 except ImportError:
449 pass
450 else:
451 attributes = ('TK_VERSION', 'TCL_VERSION')
452 copy_attributes(info_add, _tkinter, 'tkinter.%s', attributes)
453
454 try:
455 import tkinter
456 except ImportError:
457 pass
458 else:
459 tcl = tkinter.Tcl()
460 patchlevel = tcl.call('info', 'patchlevel')
461 info_add('tkinter.info_patchlevel', patchlevel)
462
463
464def collect_time(info_add):

Callers

nothing calls this directly

Calls 2

copy_attributesFunction · 0.85
callMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…