On 30.10.01 at 07:00 Mark Wilkinson wrote:
>I have never tried, but I am pondering the possibilities of having
>Win32GUI and
>PerlTK run simultaneously...

I just tried that a few days ago after a similar post on the Perl/Tk
mailing list. It seems to work.

I placed the Tk code in a package without calling MainLoop. Then called
the Tk widget from the Win32::GUI script:

mytkwidget::show_widget();
Tk::MainLoop;
...


The "main" Tk code is in the show_widget sub. Not an OO widget.

The cool thing is that the Tk widget can be moved over the Win32::GUI
window and both are refreshed :-)
That doesn't happen when you use a native Windows widget (e.g. file
selector) from Perl/Tk.

HTH,

Marcus



Reply via email to