Merge pull request #5210 from PySimpleGUI/Dev-latest

Cast the default for Checkbox to bool
This commit is contained in:
PySimpleGUI 2022-02-18 12:45:26 -05:00 committed by GitHub
commit f15a38d123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1,11 +1,13 @@
#!/usr/bin/python3
version = __version__ = "4.57.0.1 Unreleased"
version = __version__ = "4.57.0.2 Unreleased"
_change_log = """
Changelog since 4.57.0 released to PyPI on 13-Feb-2022
4.57.0.1
Added checking for timeout error to execute_get_results instead of showing an error popup as it's not truly an error in this case
4.57.0.2
Added cast to bool of default parm for Checkbox element in case user passes in an incorrect type
"""
__version__ = version.split()[0] # For PEP 396 and PEP 345
@ -2623,7 +2625,7 @@ class Checkbox(Element):
self.Text = text
self.InitialState = default
self.InitialState = bool(default)
self.Value = None
self.TKCheckbutton = self.Widget = None # type: tk.Checkbutton
self.Disabled = disabled