Software Engineering Institute | Carnegie Mellon University
Software Engineering Institute | Carnegie Mellon University

Digital Library

Javascript is currently disabled for your browser. For an optimal search experience, please enable javascript.

Advanced Search

Basic Search

Content Type

Topics

Publication Date

Technical Note

Rendering Tcl/Tk Windows as HTML

  • February 2003
  • By Fred Hansen
  • Tcl is a programming language having a Toolkit library that provides a standard set of GUI widgets. Since these are aimed at direct presentation via a window manager, Tcl/Tk applications are not compatible with web-based service delivery environments. Several tools provide help, but do not provide a migration path for eventual full conversion to web-based delivery. This 2003 report suggests a new approach.
  • Publisher: Software Engineering Institute
    CMU/SEI Report Number: CMU/SEI-2003-TN-002
  • Abstract

    Tool Control Language (Tcl) is a programming language having a Toolkit (Tk) library that provides a standard set of graphical user interface (GUI) widgets. Since these are aimed at direct presentation via a window manager, Tcl/Tk applications are not compatible with Web-based service delivery environments. Several tools provide some help, but do not provide a migration path for eventual full conversion to Web-based delivery. This note suggests a new approach. For the particular application prompting this note, the GUI consists almost entirely of Tk widgets, especially tables and buttons. Hypertext Markup Language (HTML) offers these same widgets, so it is natural to consider delivering Tk windows by expressing their contents in HTML. To demonstrate this possibility, the Tk library was altered to generate HTML. As described in the paper, this shows that the Tcl/Tk internal data structures are sufficient to generate appropriate HTML commands having the same user interface as that presented by the application. Consequently, it is possible to add to Tk a fourth GUI interface in parallel to the existing ones for Unix, Macintosh, and MS Windows.

  • Download

Cite This Report

SEI

Hansen, Wilfred. Rendering Tcl/Tk Windows as HTML (CMU/SEI-2003-TN-002). Software Engineering Institute, Carnegie Mellon University, 2003. http://resources.sei.cmu.edu/library/asset-view.cfm?AssetID=6375

IEEE

Hansen. Wilfred, "Rendering Tcl/Tk Windows as HTML," Software Engineering Institute, Carnegie Mellon University, Pittsburgh, Pennsylvania, Technical Note CMU/SEI-2003-TN-002, 2003. http://resources.sei.cmu.edu/library/asset-view.cfm?AssetID=6375

APA

Hansen, Wilfred. (2003). Rendering Tcl/Tk Windows as HTML (CMU/SEI-2003-TN-002). Retrieved July 06, 2015, from the Software Engineering Institute, Carnegie Mellon University website: http://resources.sei.cmu.edu/library/asset-view.cfm?AssetID=6375

CHI

Wilfred Hansen. Rendering Tcl/Tk Windows as HTML (CMU/SEI-2003-TN-002). Pittsburgh, PA: Software Engineering Institute, Carnegie Mellon University, 2003. http://resources.sei.cmu.edu/library/asset-view.cfm?AssetID=6375

MLA

Hansen, Wilfred. 2003. Rendering Tcl/Tk Windows as HTML (Technical Report CMU/SEI-2003-TN-002). Pittsburgh: Software Engineering Institute, Carnegie Mellon University. http://resources.sei.cmu.edu/library/asset-view.cfm?AssetID=6375

BibTex

@techreport{HansenRenderingTclTk2003,
title={Rendering Tcl/Tk Windows as HTML},
author={Wilfred Hansen},
year={2003},
number={CMU/SEI-2003-TN-002},
institution={Software Engineering Institute, Carnegie Mellon University},
address={Pittsburgh, PA},
url={http://resources.sei.cmu.edu/library/asset-view.cfm?AssetID=6375} }