Tk Source Code

View Ticket
Login
Ticket UUID: 220283
Title: "winfo children ." returns incorrect stacking order
Type: Bug Version: obsolete: 8.3
Submitter: welch Created on: 2000-10-31 23:01:41
Subsystem: 65. Generic Window Operations Assigned To: nobody
Priority: 1 Zero Severity:
Status: Closed Last Modified: 2001-04-26 06:11:11
Resolution: Invalid Closed By: dgp
    Closed on: 2001-04-25 23:11:11
Description:
OriginalBugID: 4241 Bug
Version: 8.3
SubmitDate: '2000-02-25'
LastModified: '2000-02-25'
Severity: SER
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Windows NT
ClosedDate: '2000-02-25'


Name:
Roger Lucas

ReproducibleScript:
Open a WISH console and type the following :
% toplevel .one
.one
% toplevel .two
.two
% raise .one .two
% winfo children .
.one .two
% raise .two .one 
% winfo children .
.one .two

ObservedBehavior:
According to the help manual, "winfo children ." will return a list of the toplevel windows in their stacking order.  It does not.  It returns them in their creation order.  

This is confirmed behaviour on both Windows NT and Windows 98

DesiredBehavior:
Please make the "winfo children ." command match the documentation, and return the toplevel windows in their stacking order.



The docs here are unclear, but the extra note about toplevels is
meant to say that they are handled (and returned) differently than
other Tk widget children.  This works correctly for child widgets,
but toplevels are returned in creation order because their order
is really maintained by the window manager. 
-- 02/25/2000 hobbs