To introduce the basic concepts of programming with Perl/Tk, let's consider the proverbial "Hello, world" program, which in Perl/Tk looks like this
为了介绍 Perl/Tk 编程的基本概念,先让我们考虑大家熟知的“Hello, world”程序,在 Perl/Tk 中,该程序类似如下
Note that Tk::NoteBook, as well as the other contributed widgets on CPAN, are not part of the standard Tk distribution, and therefore need to be specified explicitly.
注意, Tk::NoteBook 以及 CPAN 上贡献的其他窗口小部件并不是标准 Tk 贡献的一部分,所以需要显式地指定。
Start with man Tk (or perldoc Tk), for an overview and a comprehensive list of simple and complex widgets.
输入man Tk(或者perldoc Tk),就可以看到简单的和复杂的部件的概述和详细列表。
应用推荐