Đang chuẩn bị liên kết để tải về tài liệu:
The Perl/Tk Pocket Reference

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

The Perl/Tk Pocket Reference is a companion volume to Learning Perl/Tk, an O'Reilly Animal Guide. Learning Perl/Tk is a tutorial for Perl/Tk, the extension to Perl for creating graphical user interfaces. With Tk, Perl programs can be window-based rather than command-line based, with buttons, entry fields, listboxes, menus, scrollbars, balloons, tables, dialogs, and more. And Perl/Tk programs run on UNIX and Windows-based computers. This small book is a handy reference guide geared toward the advanced Perl/Tk programmer | Perl Tk Pocket Reference for Perl Tk 800.005 - Perl 5.004 Tk 8.0 Perl Tk designed and created by Nick Ing-Simmons nick@ni-s.u-net.com Pocket Reference contents written by Steve Lidie Stephen.O.Lidie@Lehigh.EDU Contents 1. General Perl Tk Widget Information. 2 2. Perl Tk Special Variables . 5 3. Widget Scroll Commands. 5 4. The Canvas Widget . 6 5. The Entry Widget. 11 6. The Listbox Widget. 12 7. The Menu Widget. 13 8. The Text Widget. 15 9. Other Standard Widgets. 18 10. Perl Tk Widgets . .24 11. Composite and Derived Widgets.43 12. Images.45 13. Window Information.47 14. The Window Manager.49 15. Bindings and Virtual Events.50 16. Geometry Management .53 17. Fonts.54 18. Other Perl Tk Commands.55 Rev. 8.0.0 Conventions fixed denotes literal text. this means variable text i.e. things you must fill in. word is a keyword i.e. a word with a special meaning. . denotes an optional part. 1. General Perl Tk Widget Information All Perl Tk programs must have a use Tk statement. To use special Perl Tk widgets like Dialog a use Tk Dialog statement is required. All widgets are created with widget parent- widgetClass -option value . where widgetClass is the name of the class of widget desired eg. Button and parent is the Perl Tk widget reference of the new widget s parent. The Perl object reference is stored in widget which becomes a child of parent creating the widget hierarchy. All widget creation commands can have the optional Name resourceName parameter to associate a resource database name with the widget. Every Perl Tk program requires a main window the topmost widget in the hierarchy created with mw MainWindow- new The following command creates a new button widget b and uses the grid geometry manager to map it b mw- Button -text Hello World - grid Widget configuration options may be passed in the creation method. Options begin with a - and are usually followed by a value an integer or string sometimes a Perl scalar array hash or code reference. After creation options .

TÀI LIỆU LIÊN QUAN