-
Notifications
You must be signed in to change notification settings - Fork 0
Home
KOBAYASI, Hiroaki edited this page Mar 25, 2016
·
3 revisions
minhtmltk0 - A local html viwer demo of tkhtml (tkhtml3).
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
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.
- Tcl 8.5
- tcllib (snit)
- Tkhtml3 (alpha15 or later)
- Rendering of local html files.
- Basic html form handling with minimum event handling.