That's a good question, I'm not sure. It'd be nice if I could implement this idea as it seems to be the best solution to the problem. But from your sample it seems that I would need you to hold my hand most of the way through it - or I'd need to read and absorb most of "Advanced Perl Programming", which I find an even less enticing option than contorting my original script around Tk's logic. I assume you probably don't want to do it, and anyway, I don't like to ask people to do my projects for me and/or write detailed 10-page howtos for solving my specific problem...
If you think you can enlighten my about how to do this in a couple of comments added to the above code and add the code for generating a widget based on specific strings printed to the original script's STDOUT, that'd be great. I was just reluctant to ask you to do it because it's too much like spoonfeeding.
The danger is that if something breaks or needs changing in the interface between the original script and the GUI module, I won't be able to fix it, but I guess that's not very likely.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|