Skip to content
Permalink
Browse files

Release 4.17.0

  • Loading branch information
PySimpleGUI committed Mar 25, 2020
1 parent 5b7e899 commit fad3dfb1d33a7951c32dc83ccf74d2e35b320d53
Showing with 7,557 additions and 9,118 deletions.
  1. +20 −6 PySimpleGUI.py
  2. +181 −118 docs/cookbook.md
  3. +3,678 −4,497 docs/index.md
  4. +3,678 −4,497 readme.md
@@ -1,6 +1,6 @@
#!/usr/bin/python3

version = __version__ = "4.16.16 Unreleased\n update_animation_no_buffering, popup_notify, removed TRANSPARENT_BUTTON, TabGroup now autonumbers keys, Table col width better size based on font, Table measure row height, Upgrade from GitHub utility (experimental), Multiline.print, fix padding lost with visibility, new upgrade utility, upgrade parameter, switched to urllib, more docstrings"
version = __version__ = "4.17.0 Released 24 Mar 2020"

port = 'PySimpleGUI'

@@ -277,6 +277,7 @@ def wrapper(*args, **kwargs):

CURRENT_LOOK_AND_FEEL = 'DarkBlue3'


DEFAULT_ERROR_BUTTON_COLOR = ("#FFFFFF", "#FF0000")
DEFAULT_BACKGROUND_COLOR = None
DEFAULT_ELEMENT_BACKGROUND_COLOR = None
@@ -298,6 +299,9 @@ def wrapper(*args, **kwargs):

# A transparent button is simply one that matches the background
# TRANSPARENT_BUTTON = 'This constant has been depricated. You must set your button background = background it is on for it to be transparent appearing'

TRANSPARENT_BUTTON = ('#F0F0F0', '#F0F0F0') # Use (sg.theme_background_color(), sg.theme_background_color()) instead!!!

# --------------------------------------------------------------------------------
# Progress Bar Relief Choices
RELIEF_RAISED = 'raised'
@@ -6841,6 +6845,9 @@ def Read(self, timeout=None, timeout_key=TIMEOUT_KEY, close=False):
:return: (event, values)
:rtype: Tuple[(Any), Union[Dict[Any:Any]], List[Any], None]
"""
# ensure called only 1 time through a single read cycle
if not Window._read_call_from_debugger:
_refresh_debugger()
results = self._read(timeout=timeout, timeout_key=timeout_key)
if close:
self.close()
@@ -6863,9 +6870,7 @@ def _read(self, timeout=None, timeout_key=TIMEOUT_KEY):
:return: (event, values) (event or timeout_key or None, Dictionary of values or List of values from all elements in the Window)
:rtype: Tuple[(Any), Union[Dict[Any:Any]], List[Any], None]
"""
# ensure called only 1 time through a single read cycle
if not Window._read_call_from_debugger:
_refresh_debugger()

timeout = int(timeout) if timeout is not None else None
if timeout == 0: # timeout of zero runs the old readnonblocking
event, values = self._ReadNonBlocking()


def _upgrade_gui():
try:
cur_ver = version[:version.index('\n')]
except:
cur_ver = version

if popup_yes_no('* WARNING *',
'You are about to upgrade your PySimpleGUI package previously installed via pip to the latest version location on the GitHub server.',
'You are running verrsion {}'.format(version[:version.index('\n')]),
'You are running verrsion {}'.format(cur_ver),
'Are you sure you want to overwrite this release?', title='Are you sure you want to overwrite?',
keep_on_top=True) == 'Yes':
_upgrade_from_github()
# theme('dark brown 2')
# theme('dark red')
# theme('Light Green 6')
ver = version[:version.index('\n')]
try:
ver = version[:version.index('\n')]
except:
ver = version

print('Starting up PySimpleGUI Test Harness\n', 'PySimpleGUI Version ', ver, '\ntcl ver = {}'.format(tkinter.TclVersion),
'tkinter version = {}'.format(tkinter.TkVersion), '\nPython Version {}'.format(sys.version))

0 comments on commit fad3dfb

Please sign in to comment.
You can’t perform that action at this time.