in reply to Perl/Tk application rendering HTML?

Tk::HTML renders HTML.

-Mark

  • Comment on Re: Perl/Tk application rendering HTML?

Replies are listed 'Best First'.
Re^2: Perl/Tk application rendering HTML?
by wolfger (Deacon) on Feb 25, 2005 at 12:56 UTC

    Sure would be nice if that module's writer/maintainer would include some sort of useful documentation...


    --
    Linux, sci-fi, and Nat Torkington, all at Penguicon 3.0
    perl -e 'print(map(chr,(0x4a,0x41,0x50,0x48,0xa)))'
Re^2: Perl/Tk application rendering HTML?
by dogsbody (Initiate) on Feb 26, 2005 at 13:25 UTC
    I've been looking for a similar 'embedded' browser myself. I've implemented this on win32 using Delphi/Active-X/Explorer - very simple and renders pages same as Internet Explorer (JavaScript runs etc). It is possible to do this with Mozilla if you don't want explorer. After much googling I came to the conclusion that there was not a perl solution out there for *nix that was -easy- to use. I found a Java solution but I did not spend much time on it.
Re^2: Perl/Tk application rendering HTML?
by jdtoronto (Prior) on Feb 25, 2005 at 02:08 UTC
    Maybe it does, but only for those who know how in heck it works, or how to use it. Oh sorry, if someone knew that they must have been killed already.

    Do you have any example code Mark?

    jdtoronto

      Tk::HTML does indeed come with some "hidden" documentation.
      However, I noticed it renders HTML horribly.

      Here you can find the example code from the module and see it with your own eyes...
      If you were using WxWidgets or Win32::GUI (and assuming you're in Win32 environment), you could use either Wx::ActiveX or Win32::GUI::AxWindow in order to create a Internet Explorer component that does the rendering for you.

      Maybe you could write a XS extension exntending Tk. ;)
      It shouldn't be a big problem, since Tcl::Tk documentation states that Tcl/Tk already supports creating ActiveX widgets.


      acid06
      perl -e "print pack('h*', 16369646), scalar reverse $="
      Sorry, not really. I downloaded it once, ran tkweb, filed it away in my memory, never to use it again. I would advise studying the tkweb source as a way to get a handle on module.

      -Mark