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

In reply to Structure of a large Perl GUI application by DarrenM

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.