fixed bug added in 4.45.0 with disabled not working correctly when calling update
This commit is contained in:
parent
0cfbf39ebc
commit
552a85aca7
|
@ -1,12 +1,14 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
version = __version__ = "4.46.0.1 Unreleased"
|
version = __version__ = "4.46.0.2 Unreleased"
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Changelog since 4.46.0 release to PyPI on 10 Aug 2021
|
Changelog since 4.46.0 release to PyPI on 10 Aug 2021
|
||||||
|
|
||||||
4.46.0.1
|
4.46.0.1
|
||||||
Added rstrip parm to Multiline element
|
Added rstrip parm to Multiline element
|
||||||
|
4.46.0.2
|
||||||
|
Combo.update - fixed bug added in 4.45.0 with disabled not working correctly when calling update
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__version__ = version.split()[0] # For PEP 396 and PEP 345
|
__version__ = version.split()[0] # For PEP 396 and PEP 345
|
||||||
|
@ -1745,8 +1747,11 @@ class Combo(Element):
|
||||||
self.TKCombo['state'] = 'enable'
|
self.TKCombo['state'] = 'enable'
|
||||||
if disabled is True:
|
if disabled is True:
|
||||||
self.TKCombo['state'] = 'disable'
|
self.TKCombo['state'] = 'disable'
|
||||||
elif disabled is False and not self.Readonly:
|
elif disabled is False and self.Readonly is True:
|
||||||
|
self.TKCombo['state'] = 'readonly'
|
||||||
|
elif disabled is False and self.Readonly is False:
|
||||||
self.TKCombo['state'] = 'enable'
|
self.TKCombo['state'] = 'enable'
|
||||||
|
self.Disabled = disabled if disabled is not None else self.Disabled
|
||||||
if font is not None:
|
if font is not None:
|
||||||
self.TKCombo.configure(font=font)
|
self.TKCombo.configure(font=font)
|
||||||
if visible is False:
|
if visible is False:
|
||||||
|
|
Loading…
Reference in New Issue