shreedarasp has asked for the wisdom of the Perl Monks concerning the following question:
script 1. mainprog.pl has TK widgets (button) and depending on which button the user 'clicks', main script will run that perticular (2nd) perl script.
script2. this 2nd perl script in turn calls other 2 perl modules and each module has its own TK mainloop contorl. in this script i have called module1 first and module2 next
the problem is when i run the script#2 first, everything works fine without any problem. however if i run the script#1 first which calls script#2 then the module1 and module2 is activated simultaniously.
in other words if i run the script#2 then module1 is run first and WAITS for 1 TK mw to finish. then only it runs second module. however if i run this from main script then both module1 and module2 are run at a time.
how do i fix this?
Edit: g0n - basic markup
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MainLoop control
by zentara (Cardinal) on Dec 12, 2007 at 13:52 UTC | |
|
Re: MainLoop control
by zentara (Cardinal) on Dec 12, 2007 at 13:40 UTC | |
|
Re: MainLoop control
by Erez (Priest) on Dec 12, 2007 at 09:00 UTC | |
|
Re: MainLoop control
by Anonymous Monk on Dec 12, 2007 at 07:36 UTC |