winfo toplevel

[winfo toplevel $itk_component(hull)] configure \
         -menu $itk_component(menu)

add a menu bar into the toplevel window which containing $itk_component(hull)

.  toplevel

.c  toplevel new class c

.d widigets

原文地址:https://www.cnblogs.com/greencolor/p/2116766.html