Tk Source Code

View Ticket
Login
Ticket UUID: 1700065
Title: error in trace proc on textvariable doesn't trigger bgerror
Type: Bug Version: None
Submitter: mpc_janssen Created on: 2007-04-13 14:03:06
Subsystem: 07. [entry] Assigned To: fvogel
Priority: 6 Severity: Minor
Status: Closed Last Modified: 2015-12-19 22:52:13
Resolution: Fixed Closed By: fvogel
    Closed on: 2015-12-19 22:52:13
Description:
If a write trace is set on a textvariable for a entry widget, an error in this proc will not call bgerror and will be discarder.

The same behaviour occurs on 8.4.13 and 8.5a6

Example script:
trace variable a w tr
proc tr args {error $args}
entry .e -textvariable a
pack .e
# typing in the entry will not give any error, a set on the var will, using after a bgerror will be shown
after 10 {set a 4)

::ttk::entry does call the bgerror
User Comments: fvogel added on 2015-12-19 22:52:13:
Merged to core-8-5-branch and trunk.

fvogel added on 2015-12-10 17:23:57:
Fix proposed in branch bug-1700065fff, with new non-regression tests entry-23.1 and spinbox-23.1