use Tk::Frame; use Tk::Notebook; #And whatever you may be using...