Redefined __version__ to be the shortened version string

This commit is contained in:
PySimpleGUI 2020-10-17 14:24:24 -04:00
parent b6e972c601
commit 6231e5876a
1 changed files with 5 additions and 2 deletions

View File

@ -1,11 +1,14 @@
#!/usr/bin/python3
version = __version__ = "4.30.0.1 Unreleased \nAdded ability to set icon for popup_get_file when icon is set as parameter"
version = "4.30.0.1 Unreleased \nAdded ability to set icon for popup_get_file when icon is set as parameter, changed __version__ to be same as 'ver' (the shortened version number)"
# The shortened version of version
try:
ver = version.split(' ')[0]
except:
ver = ''
__version__ = ver
port = 'PySimpleGUI'
# 888888ba .d88888b oo dP .88888. dP dP dP
@ -18298,13 +18301,13 @@ def _create_main_window():
# theme('dark red')
# theme('Light Green 6')
# theme('Dark Grey 8')
ver = version.split('\n')[0]
tkversion = tkinter.TkVersion
tclversion = tkinter.TclVersion
tclversion_detailed = tkinter.Tcl().eval('info patchlevel')
print('Starting up PySimpleGUI Diagnostic & Help System')
print('PySimpleGUI long version = ', version)
print('PySimpleGUI Version ', ver, '\ntcl ver = {}'.format(tclversion),
'tkinter version = {}'.format(tkversion), '\nPython Version {}'.format(sys.version))
print('tcl detailed version = {}'.format(tclversion_detailed))