Marshall++
rcaputo++

Thank you both for the help.

I believe this is a POE issue, as I've been perlapp-ing tk products for some time now.

In fact, you can actually get this to run if you use that trick I spoke about earlier. Instead of expecting poe_main_window to be there, simply set it yourself:

my $poe_main_window = MainWindow->new();

If you do this, the application will come up and run somewhat correctly. A better example of running somewhat correctly is in the pogram listed in my previous question, you'll see that everything works fine, but when the input stops, you can't scroll. I believe this has to do with the warning that Rocco puts in his documentation about not using MainWindow->new directly (that's my gut feeling, but I'm not sure).

My goal is to put together something similar to what is in my previous question, but I wanted to start at ground zero first, and figure out how to build a simple app with POE and Tk correctly.

I really appreciate the help on this, as I have to have something ready by the end of the month. If I can't get this to work with POE and Tk, I'll have to pull out the POE stuff (which I really don't want to do).

Thanks

-Craig

Update: Also, I believe it's true that just because perlapp includes a module, doesn't mean it is forced to be used. My understanding is that perlapp can include many modules, even ones that the application never uses (just excess baggage). It's just providing the environment for the perl script to run. If this is true, then it wouldn't matter that perlapp is including two mutually exclusive modules (POE::Loop::Select and POE::Loop::TkActiveState) and the application would just choose which one it wants to use.

My current gut feeling is that I just need to be including something that I'm not. I have no idea what that could be though...


In reply to Re: POE & Tk totally confound perlapp (or am I missing something?) by cmv
in thread POE & Tk totally confound perlapp (or am I missing something?) by cmv

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.