Hi,
I`m trying to merge some large scripts into a PerlTK GUI application, so the GUI drives the scripts basically but also leaving the application expandable in the future. I was thinking about having a main script that builds the GUI (Windows, menu`s etc). And then when menu`s are selected, calls are made to routines in PM`s that are kept in seperate scripts. The scripts currently are broken down into subroutines so this would be relatively easy.
However, the GUI application uses a progress bar and I`ll need to write information back to the the GUI application from the routines in the modules. Is this possible? So if I define a progress bar in the main script where the GUI is built, will I be able to refer to it from the routines within the modules that are called from the main script?
Or alternatively, can I have some ideas on better ways of doing it or point me to a resource or samples I can have a look at. I`ve tried to search for examples but I only find small simple Perl TK scripts. I`m building a GUI application that has the potential to grow quite large. Some of the menu items will execture a lot of code for example (mathematical code that also generates graphs ). If I were to put it all in one script which Iknow I could do, it could prove very hard to read/maintain etc.
Thanks for any help