Merge pull request #6480 from PySimpleGUI/Dev-latest

Fixed spelling errors... resuse should have been reuse
This commit is contained in:
PySimpleGUI 2023-08-16 09:35:14 -04:00 committed by GitHub
commit c34d28bcd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 7 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/python3 #!/usr/bin/python3
version = __version__ = "4.61.0.192 Unreleased" version = __version__ = "4.61.0.193 Unreleased"
_change_log = """ _change_log = """
Changelog since 4.60.0 released to PyPI on 8-May-2022 Changelog since 4.60.0 released to PyPI on 8-May-2022
@ -456,6 +456,8 @@ _change_log = """
Fixed bug in Button.update. Was setting the activeforeground and activebackground which broke the mouseover or mouse press colors Fixed bug in Button.update. Was setting the activeforeground and activebackground which broke the mouseover or mouse press colors
4.61.0.192 4.61.0.192
Fixed bug in Button.update. Corrected when activeforeground and activebackground are set. Removing them in version above was a mistake Fixed bug in Button.update. Corrected when activeforeground and activebackground are set. Removing them in version above was a mistake
4.61.0.193
Fixed spelling errors... resuse should have been reuse
""" """
@ -7358,7 +7360,7 @@ class Frame(Element):
continue continue
if element.ParentContainer is not None: if element.ParentContainer is not None:
warnings.warn( warnings.warn(
'*** YOU ARE ATTEMPTING TO RESUSE AN ELEMENT IN YOUR LAYOUT! Once placed in a layout, an element cannot be used in another layout. ***', '*** YOU ARE ATTEMPTING TO REUSE AN ELEMENT IN YOUR LAYOUT! Once placed in a layout, an element cannot be used in another layout. ***',
UserWarning) UserWarning)
_error_popup_with_traceback('Error creating Frame layout', _error_popup_with_traceback('Error creating Frame layout',
'The layout specified has already been used', 'The layout specified has already been used',
@ -7694,7 +7696,7 @@ class Tab(Element):
continue continue
if element.ParentContainer is not None: if element.ParentContainer is not None:
warnings.warn( warnings.warn(
'*** YOU ARE ATTEMPTING TO RESUSE AN ELEMENT IN YOUR LAYOUT! Once placed in a layout, an element cannot be used in another layout. ***', '*** YOU ARE ATTEMPTING TO REUSE AN ELEMENT IN YOUR LAYOUT! Once placed in a layout, an element cannot be used in another layout. ***',
UserWarning) UserWarning)
popup_error_with_traceback('Error creating Tab layout', popup_error_with_traceback('Error creating Tab layout',
'The layout specified has already been used', 'The layout specified has already been used',
@ -7953,7 +7955,7 @@ class TabGroup(Element):
continue continue
if element.ParentContainer is not None: if element.ParentContainer is not None:
warnings.warn( warnings.warn(
'*** YOU ARE ATTEMPTING TO RESUSE AN ELEMENT IN YOUR LAYOUT! Once placed in a layout, an element cannot be used in another layout. ***', '*** YOU ARE ATTEMPTING TO REUSE AN ELEMENT IN YOUR LAYOUT! Once placed in a layout, an element cannot be used in another layout. ***',
UserWarning) UserWarning)
PopupError('Error creating Tab layout', PopupError('Error creating Tab layout',
'The layout specified has already been used', 'The layout specified has already been used',
@ -8614,7 +8616,7 @@ class Column(Element):
continue continue
if element.ParentContainer is not None: if element.ParentContainer is not None:
warnings.warn( warnings.warn(
'*** YOU ARE ATTEMPTING TO RESUSE AN ELEMENT IN YOUR LAYOUT! Once placed in a layout, an element cannot be used in another layout. ***', '*** YOU ARE ATTEMPTING TO REUSE AN ELEMENT IN YOUR LAYOUT! Once placed in a layout, an element cannot be used in another layout. ***',
UserWarning) UserWarning)
PopupError('Error creating Column layout', PopupError('Error creating Column layout',
'The layout specified has already been used', 'The layout specified has already been used',
@ -10655,10 +10657,10 @@ class Window:
continue continue
if element.ParentContainer is not None: if element.ParentContainer is not None:
warnings.warn( warnings.warn(
'*** YOU ARE ATTEMPTING TO RESUSE AN ELEMENT IN YOUR LAYOUT! Once placed in a layout, an element cannot be used in another layout. ***', '*** YOU ARE ATTEMPTING TO REUSE AN ELEMENT IN YOUR LAYOUT! Once placed in a layout, an element cannot be used in another layout. ***',
UserWarning) UserWarning)
_error_popup_with_traceback('Error detected in layout - Contains an element that has already been used.', _error_popup_with_traceback('Error detected in layout - Contains an element that has already been used.',
'You have attempted to resuse an element in your layout.', 'You have attempted to reuse an element in your layout.',
"The layout specified has an element that's already been used.", "The layout specified has an element that's already been used.",
'You MUST start with a "clean", unused layout every time you create a window', 'You MUST start with a "clean", unused layout every time you create a window',
'The offensive Element = ', 'The offensive Element = ',