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

View File

@ -4,8 +4,7 @@ import _tkinter
header = _tkinter.TK_VERSION
lib = tkinter.Tk().getvar('tk_version')
print('header version=' + header)
print('lib version=' + lib)
if lib != '8.6' or header != '8.6':
if lib != header:
print('header version=' + header)
print('lib version=' + lib)
exit(1)