Check tcltk for any platform and version

This commit is contained in:
Sergey Dolin
2022-06-17 13:55:32 +02:00
parent 045abfcc36
commit edcd32dbf1
2 changed files with 10 additions and 12 deletions

10
tests/sources/tcltk.py Normal file
View File

@@ -0,0 +1,10 @@
import tkinter
import _tkinter
header = _tkinter.TK_VERSION
lib = tkinter.Tk().getvar('tk_version')
if lib != header:
print('header version=' + header)
print('lib version=' + lib)
exit(1)