How can i wait for a Tcl/Tk toplevel widget to be created before moving on? -


i'm using tcl/tk build ui , im running problem of trying interact toplevel window before it's been created.

i created toplevel window this:

toplevel .t 

then try , interact this:

wm stackorder .t isabove . 

but .t doesn't exist yet , error window not being mapped. equates doing this:

winfo ismapped [toplevel .t] 

which returns 0 if run following:

winfo ismapped .t 

then return value 1.

how can know when toplevel window mapped (and therefore ready interact with) can proceed program?

i found answer, needed following:

tkwait visibility .t 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -