http://qs321.pair.com?node_id=11118920


in reply to Re^5: Writing my first PERL/Tk megawidgit
in thread Writing my first PERL/Tk megawidgit

That version made more sense. If I split the MEGAWIDGET and save it as a *pm file, and call it, it works fine. It returns the key that was chosen. When I stick it in the program I am working on, it fails... It displays the widget and data, but the line below fails to execute.

MainLoop; defined $selection and print "'$selection' was selected\n";

Here you print '$selection' after 'MainLoop;' In the program. all the GUI stuff is in a subroutine called 'create_ui', which is executed after 'MainLoop;'. Will this mess anything up? An idea here? Anyways, I been learning a lot during this adventure -- thanks.