Mastering Perl/Tk
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 Per...
Autor principal: | |
---|---|
Otros Autores: | |
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Beijing ; Sebastopol, California :
O'Reilly
2002.
|
Edición: | First edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627000306719 |
Tabla de Contenidos:
- Table of Contents; Preface; History of This Book; What You Should Already Know; What's in This Book; Reading Order; Typographical Conventions; We'd Like to Hear from You; Acknowledgments; Steve; Nancy; Hello, Perl/Tk; Perl/Tk Concepts; Some Perl/Tk History; The X Window System and Xlib; The Coming of Tcl/Tk; The Evolution of Perl/Tk; Perl/Tk Meets Win32; Getting Started with Perl/Tk; Do You Need To Install Anything?; Creating Widgets; Specifying Options; Toplevel, MainWindow, and Frame Widgets; Displaying a Widget; The Event Loop; Hello World Example; exit Versus destroy; Unsolicited Advice
- Programming StyleNaming Conventions for Widget Types; Designing Your Windows; Debugging and Prototyping Perl/Tk Programs; Geometry Management; The pack Geometry Manager; Options for pack; Positioning Widgets; Allocation Rectangles; Filling the Allocation Rectangle; Expanding the Allocation Rectangle; Anchoring a Widget in Its Allocation Rectangle; Widget Order in the Window; Padding the Size of the Widget; Valid screen distances; Displaying in a Parent Other Than Your Own; Methods Associated with pack; Unpacking a widget; Retrieving pack information; Disabling and enabling automatic resizing
- Listing widgetsDemo Programs for pack; The grid Geometry Manager; Special Characters; Spanning columns; Empty cells; grid Options; Specifying Rows and Columns Explicitly; Spanning Rows and Columns Explicitly; Forcing a Widget to Fill a Cell; Padding the Widget; Specifying a Different Parent; Configuring Columns and Rows; Weight; Minimum cell size; Padding; Bounding box; Removing a Widget; Getting Information; Widget Location; Propagation; How Many Columns and Rows?; gridSlaves; The place Geometry Manager; place Options; Absolute Coordinates; Relative Coordinates; Anchoring the Widget
- Width and HeightBorder Options; Methods Associated with place; Removing the widget; Place information; Place slaves; The form Geometry Manager; Options for form; Attachments; Attaching to the grid; Widget-to-widget attachments; Attaching to nothing; Springs; form Methods; Changing the grid size; Removing a widget from a container; Options info for form; What's managed by form?; Circular dependency check; Geometry Management Summary; Fonts; Experimenting with Fonts; Dissecting a Font; Using Fonts; System Fonts; Using Fonts Dynamically; Font Manipulation Methods; One Last Example
- Button, Checkbutton, and Radiobutton WidgetsCreating Button Widgets; Standard Options for Each Button Type; Table of Options for Button-Type Widgets; Displaying Text on Buttons; Displaying an Image or Bitmap; Images with Checkbuttons and Radiobuttons; Checkbutton and Radiobutton Indicator Status; On and Off Values for a Checkbutton; Radiobutton Values; The -command Option; Disabling a Button; Text Manipulation; Altering the Button's Style; Changing the Size of a Button; Adding a Keyboard Mapping; Color Options; Indicator Colors; Hiding the Indicator; Focus Options
- Altering the Highlight Rectangle