Skip to content
KOBAYASI, Hiroaki edited this page Mar 25, 2016 · 3 revisions

NAME

minhtmltk0 - A local html viwer demo of tkhtml (tkhtml3).

>>日本語

SYNOPSIS

You can use this by sourcing it from Tcl like following:

source ./minhtmltk0.tcl
set win [minhtmltk .%AUTO%]
pack $win -fill both -expand yes

$win parse {
  <h2>Hello!</h2>
  <input type="submit" value="Hello!!!">
}

$win on submit {
  puts "Hello world!"
}

Also you can try this as an standalone script like following:

% ./minhtmltk0.tcl --html='<h2>foo</h2>'

% ./minhtmltk0.tcl --file=index.html

DESCRIPTION

This is my first public attempt to provide some demonstrations of tkhtml3. Actually, tkhtml already has its own demo hv3 but it is too large to reuse.

So, I decided to provide minimized guts of hv3.

Important note:

  • This version does not support networking!
  • No image.
  • No separated css file.
  • Event handling API is pre-alpha. It may change.

Dependencies

  • Tcl 8.5
  • tcllib (snit)
  • Tkhtml3 (alpha15 or later)

Features

  • Rendering of local html files.
  • Basic html form handling with minimum event handling.
Clone this wiki locally