Advanced Search
Mail us
Home    Manuel    Links    Faq    Submit a tcl/tk Reference    Contact Us

    Some examples tcl/tk codes     Man of Bwidget     Man of blt     mkwidget screenshots     TkOgl     Video Demo real.


  Launching an HTML Browser to Display Help
 
 Here is the code you can use to display HTML help. It uses the default browser in Windows but assumes netscape in UNIX and
requires it to be in the user`s path. 

 if { $tcl_platform(platform) == "windows" } {

      if {[file exists $env(COMSPEC)]} {
          exec $env(COMSPEC) /c start $EnvDir/help/envhelp.htm &
      }
} else {
      exec netscape $EnvDir/help/envhelp.htm &
}


-Greg Orchard 

See also http://mini.net/cgi-bin/wikit/InvokingBrowsers for more on invoking Web browsers from Tcl/Tk.