原文:
25. Are there any major applications written in perl/Tk?
Yes. In fact, there are some interesting perl/Tk applications already available from: Your very own perl/Tk distibution:
The following programs may be found in your own Tk#/ directory (you already have these if you have the Tk extension to perl)*: program descriptionpfm perl file manager - cute iconic front to emacsptknews a GUI perl newsreader - a work in progress.tkpsh perl/Tk equivalent of the Tcl/Tk wish shell.toyedit a Text widget editor.
The following programs may be found either in your demos directory (consult the README file there for fuller descriptions) or in your perl/bin install directory: program descriptionbrowse Simple file browser front end for emacs.color_editor Front end to Tk::ColorEditor allows RGB, CMY, and HSV color cube manipulation (based on tcolor.tcl).ixset GUI front end to xset - for terminal settings.pgs Perl front end to Ghostscript (viewing PostScript(c) files).rmt perl/Tk "development shell/remote control application" You can launch or talk to other perl/Tk apps with rmt.rolodex Like the Tcl/Tk app of the same name. Requires editing for personal use.timer Stopwatch-like seconds timer.tkpod The perl gui pod viewer (like xman).tkweb The perl "Rough and Ready" web browser.
*Peter Prymmer recently posted a means by which one can integrate any or all of these GUI applications into one's own X-window environment. Here for terse illustration is the basic idea behind using an X11R6.1 .mwmrc.m4 resource file for making a Menu (make sure the applications are in your PATH or specify a full path to each one as needed): Menu Perl{ "Perl" f.title "editor" f.exec "toy_edit &" "tkemacs" f.exec "browse &" "manual" f.exec "tkpod perl.pod &" "the web" f.exec "tkweb http://www.perl.com/perl/ &" "news" f.exec "ptknews comp.lang.perl.tk &" "pgs" f.exec "pgs &" "stop watch" f.exec "timer &"}# We bind it so that left mouse button when pressed while # over the root or background pops up with this Perl menu:Buttons DefaultButtonBindings{ <Btn1Down> root f.menu Commands # etc.}Buttons ExplicitButtonBindings{ <Btn1Down> root f.menu Commands # etc.} Other perl/Tk application distributors: ptkb.pl an xbiff like mailbox watcher. Available from ftp://ftp.wpi.edu/perl5/pTk-Modules/ptkb.pl bioTkperl Was announced by Gregg Helt mailto:gregg@fruitfly.berkeley.edu recently. See the home page at: http://www.cbil.upenn.edu/~dsearls/bioTk.html. Source at: ftp://fruitfly.berkeley.edu/pub/bioTk/bioTkperl0.8.tar.gz EVA KOBAYASI Hiroaki's EVA is a sophisticated wish like perl/Tk "shell". It is available from: ftp://ftp.sowa.is.uec.ac.jp/pub/Lang/perl5/Tk/ plop Stephen Lidie's very useful arbitrary function Plot Program, was featured in the premier issue of The Perl Journal and is available on the web at: http://tpj.com/tpj/programs/Vol_1_Issue_1_Tk/plop modo Yet another Lidie creation. This one hails from Issue 2 of The Perl Journal neko (et al.) In the third issue of The Perl Journal Stephen Lidie makes creative use of approaches to event timing from perl/Tk. neko is one axample. Workspace Is an integrated front end to the fvwm window manager that makes use of Perl/Tk. See the web page at http://www.mirai.com/wks/ for more information. www The original 8 line wonder by Jon Orwant. Pick it up (and modify it) from: http://sun20.ccd.bnl.gov/~ptk/archive/ptk.1995.08/0411.html. (Please note: www is for amusement, the more serious perl/Tk browser - tkweb - is distributed with perl/Tk and it is "only" 60 lines long!.) ptkclock & ptkmines From the generous software archive of Jason Smith at RPI. XCricket This application was written by Nem Schlecht. PDLimage PDLimage combines Perl, Tk, and PDL. It has a homepage at: http://www.mpia-hd.mpg.de/MPIA/Projects/STARS/members/koehler/pdlimage/
Be sure to also check the newsgroups comp.lang.perl.tk, comp.lang.perl.announce, comp.lang.perl.misc, and comp.lang.perl.modules, as well as the mailing list archive for more Perl/Tk program and package announcements.
译文:
25. 有什么用Perl/Tk写的应用程序吗?
是的。实际上,在你自己的Perl/Tk安装包里就已经有一些有趣的应用程序了:
下面的程序可以在你自己的Tk目录中找到(译者注:现在好像有些没有了……?):
程序 描述
pfm Perl文件管理器——漂亮的emacs的前端
ptknews 一个图形用户界面的新闻阅读器——正在进行中
ptksh Perl/Tk中相当于Tcl/Tk的wish的shell程序
toyedit 一个文本编辑器
下面的程序可以在你的Tk安装目录中的演示目录或bin目录中找到:
程序 描述
browse 简单的文件管理器——emacs的前端
color_editor Tk::ColorEditor的前端,可以进行RGB,CMY和HSV的色彩操作(基于tcolor.tcl)
ixset xset的图形用户界面前端——用于进行终端设置
pgs Ghostscript的Perl前端——用于浏览Postscript文件
rmt Perl/Tk开发的“远程控制程序”,可以用来启动或与其它Perl/Tk应用程序通讯
rolodex 类似于同名的Tcl/Tk程序,但是在具体使用时需要修改
timer 类似秒表的计时器
tkpod 图形用户界面的Perl老式文档(pod)浏览器(类似xman)
tkweb 简陋的Perl网络浏览器
(译者注:下面的一段关于如何整合它们的内容,这里就不译了……)
其它的Perl/Tk应用程序:
ptkb.pl
一个类似于xbiff的邮件客户端。可以从ftp://ftp.wpi.edu/perl5/pTk-Modules/ptkb.pl下载
bioTkperl
最近由Gregg Helt发布的,主页为http://www.cbil.upenn.edu/~dsearls/bioTk.html,源代码在ftp://fruitfly.berkeley.edu/pub/bioTk/bioTkperl0.8.tar.gz
EVA
Kobayasi Hiroaki开发的EVA是一个比较成熟的类似wish的Perl/Tk的shell。可以从ftp://ftp.sowa.is.uec.ac.jp/pub/Lang/perl5/Tk/下载
plop
Stephen Lidie开发的非常有用的可以绘制任意函数曲线的程序(Plot Program),在Perl杂志第一期上有相关的特性介绍,可以从http://tpj.com/tpj/programs/Vol_1_Issue_1_Tk/plop得到
modo
这是Lidie的另一个作品。这个发表在Perl杂志的第二期上
neko等
在Perl杂志的第三期上,Stephen Lidie创造性的用Perl/Tk实现了定时事件。neko是一个例子
Workspace
是Perl/Tk写的fvwm窗口管理器的前端。详细情况见http://www.mirai.com/wks/页
www
最初由Jon Orwant写的只有8行的网络浏览器。在http://sun20.ccd.bnl.gov/~ptk/archive/ptk.1995.08/0411.html可以下载(但是需要修改)。(请注意:www只是为了娱乐,更好的Perl/Tk浏览器tkweb已经和Perl/Tk一起发布,它也“只有”60行!)
ptkclock和ptkmines
来自RPI的Jason Smith的软件包
XCricket
这个应用程序是由Nem Schlecht开发的
PDLimage
PDLimage结合了Perl,Tk和PDL。主页是:http://www.mpia-hd.mpg.de/MPIA/Projects/STARS/members/koehler/pdlimage/
要想了解更多的Perl/Tk应用程序,请关注comp.lang.perl.tk,comp.lang.perl.announce,comp.lang.perl.misc和comp.lang.perl.modules等新闻组,以及邮件列表存档。