MCPcopy Index your code
hub / github.com/RustPython/RustPython / collect_tkinter

Function collect_tkinter

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

Source from the content-addressed store, hash-verified

437
438
439def collect_tkinter(info_add):
440 try:
441 import _tkinter
442 except ImportError:
443 pass
444 else:
445 attributes = ('TK_VERSION', 'TCL_VERSION')
446 copy_attributes(info_add, _tkinter, 'tkinter.%s', attributes)
447
448 try:
449 import tkinter
450 except ImportError:
451 pass
452 else:
453 tcl = tkinter.Tcl()
454 patchlevel = tcl.call('info', 'patchlevel')
455 info_add('tkinter.info_patchlevel', patchlevel)
456
457
458def collect_time(info_add):

Callers

nothing calls this directly

Calls 2

copy_attributesFunction · 0.85
callMethod · 0.45

Tested by

no test coverage detected