Merge pull request #991 from MikeTheWatchGuy/Dev-latest

Changed disabled InputText from disabled to readonly
This commit is contained in:
MikeTheWatchGuy 2018-12-27 15:41:20 -05:00 committed by GitHub
commit b3d2b6a99e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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): def Update(self, value=None, disabled=None, select=None, visible=None):
if disabled is True: if disabled is True:
self.TKEntry['state'] = 'disabled' self.TKEntry['state'] = 'readonly'
elif disabled is False: elif disabled is False:
self.TKEntry['state'] = 'normal' self.TKEntry['state'] = 'normal'
if value is not None: if value is not None:
@ -4952,7 +4952,7 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form):
focus_set = True focus_set = True
element.TKEntry.focus_set() element.TKEntry.focus_set()
if element.Disabled: if element.Disabled:
element.TKEntry['state'] = 'disabled' element.TKEntry['state'] = 'readonly'
if element.Tooltip is not None: if element.Tooltip is not None:
element.TooltipObject = ToolTip(element.TKEntry, text=element.Tooltip, timeout=DEFAULT_TOOLTIP_TIME) element.TooltipObject = ToolTip(element.TKEntry, text=element.Tooltip, timeout=DEFAULT_TOOLTIP_TIME)
if element.RightClickMenu or toplevel_form.RightClickMenu: if element.RightClickMenu or toplevel_form.RightClickMenu: