Changed disabled InputText from disabled to readonly

This commit is contained in:
MikeTheWatchGuy 2018-12-27 15:40:41 -05:00
parent 1d7ab28ec9
commit 5843dd499a
1 changed files with 2 additions and 2 deletions

View File

@ -542,7 +542,7 @@ class InputText(Element):
def Update(self, value=None, disabled=None, select=None, visible=None):
if disabled is True:
self.TKEntry['state'] = 'disabled'
self.TKEntry['state'] = 'readonly'
elif disabled is False:
self.TKEntry['state'] = 'normal'
if value is not None:
@ -4944,7 +4944,7 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form):
focus_set = True
element.TKEntry.focus_set()
if element.Disabled:
element.TKEntry['state'] = 'disabled'
element.TKEntry['state'] = 'readonly'
if element.Tooltip is not None:
element.TooltipObject = ToolTip(element.TKEntry, text=element.Tooltip, timeout=DEFAULT_TOOLTIP_TIME)
if element.RightClickMenu or toplevel_form.RightClickMenu: