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

the TK FAQ (http://www.faqs.org/faqs/perl-faq/ptk-faq/part5/) states that it cannot be done,

but the answer was given in 1997!

I know once ago I put an xterm inside a frame with something like

my $xtermContainer = $canvas->Frame(-container => 1); my $xtid = $xtermContainer->id(); system("xterm -into $xtId -e ./xtermjob.pl &");

do you know of other, better ways to do it?

In particular, this time I have to use other applications, and I dont know if they support "-into" at all...

thanks!

alessandro

Replies are listed 'Best First'.
Re: X application inside tk
by zentara (Cardinal) on Sep 14, 2010 at 17:47 UTC
      thank you for your help!

      What I need to embed is any kind of word processor supporting RTF.

      I tested up to now Kword, OpenOffice and Abiword, but neither seems to support it.

      Do you know any other?

      thanks!

      alessandro

        I don't know much about word processors, I use plain text.

        There is one thing I would mention. Gtk2 has the Plug and Socket concept, which I never could get to work..... but, google for "gtk+ plug socket". Perl/Gtk2 has methods to use plugs and sockets.

        If you could find a word processor that was written in GTK+, you may be able to use plug/socket with it from Perl/Gtk2.

        If you do get it going, please write a tutorial on it. ;-) The Perl/Gtk2 maillist would be a good place to ask.


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