Practical Programming in Tcl and Tk, 4/e (Paperback)

Brent Welch, Ken Jones

  • 出版商: Prentice Hall
  • 出版日期: 2003-06-10
  • 售價: $2,750
  • 貴賓價: 9.5$2,613
  • 語言: 英文
  • 頁數: 960
  • 裝訂: Paperback
  • ISBN: 0130385603
  • ISBN-13: 9780130385604
  • 相關分類: 程式語言
  • 立即出貨 (庫存 < 3)

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

商品描述

Summary

The classic bestseller on Tcl/Tk — and the most complete reference — has been updated to version 8.4.

  • Previous edition sold over 20,000 copies domestically - 30,000 worldwide.
  • Updated for Tcl/Tk 8.4-comprehensive and accurate coverage of every Tcl and Tk command.
  • CD-ROM includes all code plus binary distributions of Tcl/Tk, Tcl extentions and tools.
Practical Programming in Tcl/Tk is described as the "bible" for Tcl programmers. It is a guide to the Tcl/Tk programming language and GUI toolkit. This revision includes substantial updates to cover the new version 8.4-giving both an overview of the features, as well as details about every command in the language. The third edition, written on version 8.2, sold over 30,000 copies. Version 8.4 of Tcl - Tool Command Language-provides substantial updates to one of the most popular UNIX scripting languages. The latest release, includes the addition of a virtual filesystem (VFS), many additional programming widgets (spinbox, panedwindow, labelframe),and improved performance of about 20% over 8.3. The book provides a guide to the best ways to use the tooklit. It not only gives accurate details, but includes extensive examples that demonstrate the best way to use the toolkit. The authors are experts that have both developed the technology and used it to solve problems, so they have many valuable insights to relate to the readers.

Brent Welch is a software architect at Panasas, and former research engineer at Sun Microsystems and Xerox PARC. He has been involved in Tcl and Tk from the early beginnings, and developed major Tcl applications including the exmh email user interface and the TclHttpd web server. His home page is http://www.beedub.com/ Ken Jones is a Silicon Valley Tcl/Tk instructor and frequent speaker at industry Tcl/Tk conferences.

Table of Contents

List of Examples.
List of Tables.
Preface.

I. Tcl Basics.

1. Tcl Fundamentals.
2. Getting Started.
3. The Guestbook CGI Application.
4. String Processing in Tcl.
5. Tcl Lists.
6. Control Structure Commands.
7. Procedures and Scope.
8. Tcl Arrays.
9. Working with Files and Programs.

II. Advanced Tcl.

10. Quoting Issues and Eval.
11. Regular Expressions.
12. Script Libraries and Packages.
13. Reflection and Debugging.
14. Namespaces.
15. Internationalization.
16. Event-Driven Programming.
17. Socket Programming.
18. TclHttpd Web Server.
19. Multiple Interpreters and Safe-Tcl.
20. Safe-Tk and the Browser Plugin.
21. Multi-Threaded Tcl Scripts.
22. Tclkit and Starkits.

III. Tk Basics.

23. Tk Fundamentals.
24. Tk by Example.
25. The Pack Geometry Manager.
26. The Grid Geometry Manager.
27. The Place Geometry Manager.
28. The Panedwindow Widget.
29. Binding Commands to Events.

IV. Tk Widgets.

30. Buttons and Menus.
31. The Resource Database.
32. Simple Tk Widgets.
33. Scrollbars.
34. The Entry and Spinbox Widgets.
35. The Listbox Widget.
36. The Text Widget.
37. The Canvas Widget.

V. Tk Details.

38. Selections and the Clipboard.
39. Focus, Grabs, and Dialogs.
40. Tk Widget Attributes.
41. Color, Images, and Cursors.
42. Fonts and Text Attributes.
43. Send.
44. Window Managers and Window Information.
45. Managing User Preferences.
46. A User Interface to Bindings.

VI. C Programming.

47. C Programming and Tcl.
48. Compiling Tcl and Extensions.
49. Writing a Tk Widget in C.
50. C Library Overview.

VII. Changes.

51. Tcl 74/Tk 40.
52. Tcl 75/Tk 41.
53. Tcl 76/Tk 42.
54. Tcl/Tk 80.
55. Tcl/Tk 81.
56. Tcl/Tk 82.
57. Tcl/Tk 83.
58. Tcl/Tk 84.
59. About The CD-ROM.
List of Examples.
Library Overview.
List of Tables.

商品描述(中文翻譯)

摘要

這本關於Tcl/Tk的經典暢銷書籍,也是最完整的參考資料,已經更新到8.4版。
- 上一版在國內售出超過2萬冊,全球售出3萬冊。
- 更新了Tcl/Tk 8.4的內容,全面且準確地涵蓋了每個Tcl和Tk指令。
- CD-ROM包含所有程式碼,以及Tcl/Tk、Tcl擴展和工具的二進制發行版。

《Tcl/Tk實用程式設計》被譽為Tcl程式設計師的「聖經」。它是一本關於Tcl/Tk程式語言和GUI工具包的指南。這次修訂版包含了大量的更新,以涵蓋新版本8.4的功能概述和每個語言指令的詳細說明。第三版是基於8.2版本撰寫的,售出了3萬多冊。Tcl 8.4是最受歡迎的UNIX腳本語言之一,提供了大量的更新。最新版本增加了虛擬文件系統(VFS),許多額外的程式設計小工具(spinbox、panedwindow、labelframe),並且比8.3版本的效能提升了約20%。這本書提供了如何最佳使用這個工具包的指南。它不僅提供準確的細節,還包含了大量的示例,展示了最佳使用工具包的方法。作者是這項技術的專家,他們不僅開發了這項技術,還用它來解決問題,因此他們對讀者有很多寶貴的見解。

Brent Welch是Panasas的軟體架構師,曾在Sun Microsystems和Xerox PARC擔任研究工程師。他從Tcl和Tk的早期開始就參與其中,並開發了重要的Tcl應用程式,包括exmh電子郵件使用者介面和TclHttpd網頁伺服器。他的個人網頁是http://www.beedub.com/。Ken Jones是矽谷的Tcl/Tk講師,並經常在行業的Tcl/Tk會議上演講。

目錄

- 範例清單
- 表格清單
- 前言

第一部分 Tcl 基礎

1. Tcl 基礎
2. 開始使用
3. Guestbook CGI 應用程式
4. Tcl 中的字串處理
5. Tcl 列表
6. 控制結構指令
7. 程序和作用域
8. Tcl 陣列
9. 與檔案和程式一起工作

第二部分 Tcl 進階

10. 引用問題和評估
11. 正則表達式
12. 腳本庫和套件
13. 反射和除錯
14. 命名空間
15. 國際化
16. 事件驅動程式設計
17. Socket 程式設計
18. TclHttpd 網頁伺服器
19. 多個解譯器和安全 Tcl
20. 安全 Tk 和瀏覽器插件
21. 多線程 Tcl 腳本
22. Tclkit 和 Starkits

第三部分 Tk 基礎

23. Tk 基礎
24. Tk 範例
25. Pack 佈局管理器
26. Grid 佈局管理器
27. Place 佈局管理器
28. Panedwindow 小工具
29. 將指令綁定到事件

第四部分 Tk 小工具

30. 按鈕和選單
31. 資源資料庫
32. 簡單的 Tk 小工具
33. 捲軸
34. 輸入和數字輸入框小工具
35. 列表框小工具
36. 文字框小工具
37. 畫布小工具

第五部分 Tk 詳細資料

38. 選擇和剪貼簿
39. 焦點、抓取和對話框
40. Tk 小工具屬性
41. 顏色、圖片和游標
42. 字型和文字屬性
43. 發送
44. 視窗管理器和視窗資訊
45. 管理使用者偏好設定
46. 使用者介面自定義