Ok. I have no clue what I'm talking about.
I created AmphetaDesk:
http://www.disobey.com/amphetadesk/
Roughly, it includes a built in webserver that listens until "quittin'
time" for requests on port 8888. It writes out logging information to
STDOUT, which makes a pretty console window.
Ok. What I want to do is make a GUI application using Win32::GUI. Since I
know crap about coding a GUI (only about designing one), I handed this off
to a friend, who has done VB stuff in the past, but nothing with Perl GUI's.
The problem we're running into is something concerning the Window Events.
My friend tells me that the Window needs to listen all the time so that it
can know when to redraw the window, and blah blah blah.
Lemme recap.
The program starts a webserver.
The program does some junk, and spits to console window.
The program loads the browser.
90% of the GUI is done through the browser.
While the user fiddles, the program spits info to the console window.
The user quits.
Ultimately, every where it says "console window", I'd like to replace with
a GUI. But we run into the problem of the webserver listening for requests
constantly, as well as the window listening to events constantly.
I was able to tell the webserver to non-block, in other words, to listen
for a request for 1 second and move on. What I'd like to have happen is
that when the webserver moves on, the GUI window listens for events for a
second, and then moves on as well. So, there'd be a 1 second time share
between the webserver listening and the GUI window listening.
Is this possible? And how? I'd like to:
a) not fork
b) be an all perl solution (ignoring the XS lib.)
I've got a Mac GUI working in my dev machine, but am running pathetically
short on the Windows GUI. Help?!
Morbus Iff
.sig on other machine.
http://www.disobey.com/
http://www.gamegrene.com/