July 11, 2020

[Note] tcltk and anaconda

Tclsh/wish works fine with the version comes with Anaconda.  But font for Tk application is horrible.  There is no easy fix for this.

I have a Tk application I want to use and the font is unbearable.  Easiest solution is just install tcltk and use it instead of Anaconda's.

$ sudo apt-get install tcl tk

Files:

$ dpkg-query -L tcl
/.
/usr
/usr/bin
/usr/share
/usr/share/doc
/usr/share/doc/tcl
/usr/share/doc/tcl/README.Debian
/usr/share/doc/tcl/changelog.gz
/usr/share/doc/tcl/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/man
/usr/share/man/man1
/usr/bin/tclsh
/usr/share/man/man1/tclsh.1.gz

$ dpkg-query -L tk
/.
/usr
/usr/bin
/usr/share
/usr/share/doc
/usr/share/doc/tk
/usr/share/doc/tk/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/man
/usr/share/man/man1
/usr/bin/wish
/usr/share/doc/tk/README.Debian
/usr/share/doc/tk/changelog.gz
/usr/share/man/man1/wish.1.gz


Write a simple shell script to execute the Tk application with Ubuntu tclsh and wish by putting /usr/bin first in PATH.



Misc...
When working with tcltk, I found tcltk .chm file is really helpful.
Get it from - http://tcltk.co.kr/node/1280
And install xChm (https://sourceforge.net/projects/xchm/) for Linux to view .chm file.


No comments: