winfo viewable

winfo viewable window

Returns a boolean saying if window and all of its ancestors up through the nearest toplevel window are mapped (e.g., not iconified or withdrawn). Note that this may not necessarily mean that the widget is actually visible; it could still be covered up by some other window.