From: SourceForge.net <no...@so...> - 2008-11-03 20:31:33
|
Bugs item #2218949, was opened at 2008-11-03 05:07 Message generated for change (Comment added) made by jenglish You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2218949&group_id=12997 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 88. Themed Tk Group: development: 8.6a4 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Don Porter (dgp) Assigned to: Pat Thoyts (patthoyts) Summary: spinbox-1.8.4 fails Initial Comment: Tk HEAD just started reporting this in the full `make test` results: spinbox.test ==== spinbox-1.8.4 -validate option: FAILED ==== Contents of test case: .sb configure -validate all -validatecommand {lappend ::spinbox_test %P} pack .sb .sb set 50 focus .sb after 100 {set ::spinbox_wait 1} ; vwait ::spinbox_wait set ::spinbox_test ---- Result was: ---- Result should have been (exact matching): 50 ==== spinbox-1.8.4 FAILED Running just the spinbox.test files results in no failure, so this is probably a test isolation problem. ---------------------------------------------------------------------- Comment By: Joe English (jenglish) Date: 2008-11-03 11:13 Message: OK, can replicate now: this appears to be WM-sensitive. Cause of problem: [focus .sb] does not necessarily give .sb the focus; in particular, if the WM did not set focus to the tktest main window, .sb will never get a <FocusIn> event and validation will not trigger. Possible fix: replace: focus .sb ; after 100 {set ::spinbox_wait 1} ; vwait ::spinbox_wait with: focus -force .sb ; update ---------------------------------------------------------------------- Comment By: Joe English (jenglish) Date: 2008-11-03 10:02 Message: Can't replicate. Pat? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2218949&group_id=12997 |