perlNoob has asked for the wisdom of the Perl Monks concerning the following question:

Soon I'm going to have to integrate a perl program with a perl/Tk User Interface,

I was wondering if someone could tell me where I could find some usefull information on how to do this because I seem to be having trouble searching for it around the internet.

thank you very much

  • Comment on How do I integrate the User Interface with main program in perl(perl/Tk)?

Replies are listed 'Best First'.
Re: How do I integrate the User Interface with main program in perl(perl/Tk)?
by castaway (Parson) on Nov 22, 2004 at 14:07 UTC
    What do you mean by integrate? In general, when you add a GUI to any program, it changes the way it works quite a bit. (As you are now responding to the user, instead of just running from top to bottom). If all you need is a mini interface with a button to run the program, then you just put the entire program in a sub, and call that from a buttons callback.

    What does the program do (or should it do, with an interface, that it didnt do before.. ?)

    C.

Re: How do I integrate the User Interface with main program in perl(perl/Tk)?
by saintmike (Vicar) on Nov 22, 2004 at 16:47 UTC
    Have you tried typing "perl/tk" into Google or Yahoo! or any other search engine? If you're using the same Internet as I do, you should be able to come up with enough info to get started and post more specific questions.
Re: How do I integrate the User Interface with main program in perl(perl/Tk)?
by zentara (Cardinal) on Nov 23, 2004 at 13:56 UTC
    A good start is to type "widget" at the command line and go thru the Tk widgets demo. At least you will get an idea of what is available to use.

    I'm not really a human, but I play one on earth. flash japh