Tk Source Code

View Ticket
Login
Ticket UUID: 220306
Title: winfo enhancement request
Type: RFE Version: None
Submitter: welch Created on: 2000-10-31 23:10:33
Subsystem: 65. Generic Window Operations Assigned To: nobody
Priority: 1 Zero Severity:
Status: Closed Last Modified: 2001-04-26 06:23:29
Resolution: Invalid Closed By: dgp
    Closed on: 2001-04-25 23:23:29
Description:
OriginalBugID: 5717 RFE
Version: 8.3.1
SubmitDate: '2000-05-25'
LastModified: '2000-05-27'
Severity: LOW
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: All
ClosedDate: '2000-05-27'


Name:

George Petasis



DesiredBehavior:

Two things:



1) winfo istoplevel win

Currently there is no easy way to find out if a window is a toplevel or not.

I now use "if {[string equal [winfo toplevel $win] $win]} {-->> toplevel...",

which is kind ackward...



2) winfo toplevels

An easy way to get all toplevels...





It seems simple enough to say:
     if {[winfo toplevel $w] == $w} ...

What is the purpose in getting all the toplevels? 
-- 05/27/2000 hobbs