http://www.perlmonks.org?node_id=474613

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

I'd like to embed video in a PerlTk App of mine and have found this wonderful Tk widget. Sadly, I could find no perl module to provide an interface with this widget so I figured I would resort to the Tcl::Tk module. I'm on a windows box with ActiveState, and have used the ActiveState Perl Package manager to install the Tk modules. I have no idea how to install this widget nor any clue what else I might need. Do I need to install Tcl? Please Advise.


"Sanity is the playground of the unimaginative" -Unknown

Replies are listed 'Best First'.
Re: Tk Video Widget with Perl
by Courage (Parson) on Jul 13, 2005 at 17:26 UTC
    Yes, you need to install:
    • Tcl/Tk, probably best fit could be binaries ActiveTCL from www.activestate.com
    • CPAN module Tcl; it will connect to Tcl/Tk; this module requires compiling (its not pure-perl), I can assist you on this
    • CPAN module Tcl::Tk; it will provide a syntax very similar to perl/Tk; this module is pure-perl

    All in all, once you'll solve installation task, you'll get much more flexible and larger widget set (compared to perl/Tk)

    Also, Tcl::Tk has user's mailing list (tcltk at perl.org), so feel free to write there...

      Okay, once I've installed those, how do I install a particular widget?


      "Sanity is the playground of the unimaginative" -Unknown
        if you'll have Tcl::Tk up and running, using Tcl widgets isn't hard (those developed in Tcl or for Tcl).

        To give an idea, look for example at http://vkonovalov.ru/cgi-bin/perl-tcltk-wiki.cgi/40 or other examples at that wiki.
        Note that at that example BLTNoteBook is a widget within Tcl/Tk, and initially it is completely unknown to Tcl::Tk perl module. It is a single line of perl code to introduce BLTNoteBook widget to Tcl::Tk
        Tk Video could be very similar, and I will get you an example of concrete code, once you'll get far enough :)

Re: Tk Video Widget with Perl
by zentara (Archbishop) on Jul 13, 2005 at 18:01 UTC