in reply to labelframe and gui
If your Labelframe is instantiated like so: $parent->Labelframe it should get picked up by pp. Otherwise adding use Tk::Labelframe to your program will solve your problem.