Mastering Perl/Tk (Paperback)

Stephen Lidie, Nancy Walsh

  • 出版商: O'Reilly
  • 出版日期: 2002-03-05
  • 定價: $1,800
  • 售價: 9.0$1,620
  • 語言: 英文
  • 頁數: 746
  • 裝訂: Paperback
  • ISBN: 1565927168
  • ISBN-13: 9781565927162
  • 相關分類: Perl 程式語言
  • 立即出貨 (庫存 < 3)

買這商品的人也買了...

商品描述

Perl/Tk is the marriage of the Tk graphical toolkit with Perl, the powerful programming language used primarily for system administration, web programming, and database manipulation. With Perl/Tk, you can build Perl programs with an attractive, intuitive GUI interface with all the power of Perl behind it.

Mastering Perl/Tk is the "bible" of Perl/Tk: It's not only a great book for getting started, but the best reference for learning the techniques of experienced Perl/Tk programmers. The first half of the book contains the basics on how to use Perl/Tk, and then branches out into advanced applications with a series of extensive program examples. The result is a book accessible for novices, and invaluable for experienced programmers ready to learn the next step in the elegant and effective use of Perl/Tk. The book includes:


  • An introduction to each of the basic Perl/Tk widgets and geometry managers
  • A dissection of the MainLoop, including how to use callbacks and bindings effectively
  • Coverage of the Tix widgets, an extended set of widgets that are a part of the standard Perl/Tk distribution
  • Working with images in Perl/Tk, including bitmaps, pixmaps, photos, and how to compose a compound image type
  • How to create custom mega-widgets in Perl/Tk, both composite and derived
  • Handling interprocess communication with Perl/Tk, both with standard Unix utilities (pipes and sockets) and with the send command designed for direct communication between Tk applications
  • Developing your own Tk widget in the C language
  • Examples of web applications written with Perl/Tk and the LWP library



The book also includes appendices on installing Perl/Tk, a complete quick-reference for each standard widget, and listings of all the extended examples in the book.

Nancy Walsh is the author of Learning Perl/Tk, and Steve Lidie wrote the Perl/Tk Pocket Reference as well as a series of Perl/Tk articles in The Perl Journal. Together, they have written Mastering Perl/Tk to be the definitive guide to Perl/Tk.

Table of Contents

Preface

1. Hello, Perl/Tk

2. Geometry Management

3. Fonts

4. Button, Checkbutton, and Radiobutton Widgets

5. Label and Entry Widgets

6. The Scrollbar Widget

7. The Listbox Widget

8. The Text, TextUndo, and ROText Widgets

9. The Canvas Widget

10. The Scale Widget

11. Frame, MainWindow, and Toplevel Widgets

12. The Menu System

13. Miscellaneous Perl/Tk Methods

14. Creating Custom Widgets in Pure Perl/Tk

15. Anatomy of the MainLoop

16. User Customization

17. Images and Animations

18. A Tk Interface Extension Tour

19. Interprocess Communication with Pipes and Sockets

20. IPC with send

21. C Widget Internals

22. Perl/Tk and the Web

23. Plethora of pTk Potpourri

A. Installing Perl/Tk

B. Options and Default Values for Each Widget

C. Complete Program Listings

Index

商品描述(中文翻譯)

Perl/Tk是Tk圖形工具包與Perl程式語言的結合,Perl主要用於系統管理、網頁程式設計和資料庫操作。使用Perl/Tk,您可以建立具有吸引力和直觀GUI介面的Perl程式,並擁有Perl的所有功能支援。《Mastering Perl/Tk》是Perl/Tk的「聖經」:不僅是入門的好書,也是熟練的Perl/Tk程式設計師學習技巧的最佳參考資料。本書的前半部分介紹了如何使用Perl/Tk的基礎知識,然後通過一系列廣泛的程式範例展示了高級應用。這本書對於新手來說易於理解,對於有經驗的程式設計師來說則是無價的,可以幫助他們學習如何優雅而有效地使用Perl/Tk。本書包括以下內容:

- 對每個基本Perl/Tk小工具和佈局管理器的介紹
- 對MainLoop的解析,包括如何有效使用回調和綁定
- Tix小工具的介紹,這是標準Perl/Tk發行版的擴展小工具集
- 在Perl/Tk中處理圖像,包括位圖、像素圖、照片以及如何組合複合圖像類型
- 如何在Perl/Tk中創建自定義的超級小工具,包括組合和衍生小工具
- 如何處理Perl/Tk中的進程間通信,包括使用標準Unix工具(管道和套接字)以及用於Tk應用程序之間直接通信的send命令
- 使用C語言開發自己的Tk小工具
- 使用Perl/Tk和LWP庫編寫的網頁應用程式範例

本書還包括有關安裝Perl/Tk的附錄,每個標準小工具的完整快速參考,以及書中所有擴展範例的清單。Nancy Walsh是《Learning Perl/Tk》的作者,Steve Lidie則撰寫了《Perl/Tk Pocket Reference》,並在《The Perl Journal》上發表了一系列有關Perl/Tk的文章。他們共同撰寫了《Mastering Perl/Tk》,成為Perl/Tk的權威指南。

目錄如下:

前言
1. 嗨,Perl/Tk
2. 佈局管理
3. 字型
4. 按鈕、核取方塊和單選按鈕小工具
5. 標籤和輸入框小工具
6. 捲軸小工具
7. 列表框小工具
8. 文本、可撤銷文本和只讀文本小工具
9. 畫布小工具
10. 刻度尺小工具
11. 框架、主視窗和頂層視窗小工具
12. 選單系統
13. 其他Perl/Tk方法
14. 在純Perl/Tk中創建自定義小工具
15. MainLoop的結構
16. 使用者自定義
17. 圖像和動畫
18. Tk介面擴展導覽
19. 使用管道和套接字進行進程間通信
20. 使用send進行IPC
21. C小工具內部
22. Perl/Tk和網頁
23. 大量pTk雜項

附錄A. 安裝Perl/Tk
附錄B. 每個小工具的選項和默認值
附錄C. 完整程式清單

索引