Learning Perl/Tk: Graphical User Interfaces with Perl by Nancy Walsh

By Nancy Walsh

Studying Perl/Tk is an academic for Perl/Tk, the extension to Perl for growing graphical consumer interfaces. With Tk, Perl courses may be window-based instead of command-line dependent, with buttons, access fields, listboxes, menus, and scrollbars. initially constructed for the Tcl language, the Perl port of the Tk toolkit liberates Perl programmers from the realm of command-line concepts, STDIN, and STDOUT, letting them construct graphical, event-driven purposes for either home windows and UNIX.This booklet is geared toward Perl newbies and specialists alike. It explains the reasoning at the back of event-driven functions and drills in guidance on tips to top layout graphical functions. It teaches find out how to enforce and configure all the Perl/Tk graphical components step by step. precise consciousness is given to the geometry managers, that are had to place each one button, menu, label and listbox within the window frame.Although this e-book doesn't educate easy Perl, someone who has written even the best Perl software will be capable of study Tk from this booklet. The writing is breezy and casual, and will get correct to the purpose of what you want to recognize and why. The e-book is rife with illustrations that exhibit how each one point is drawn and the way its configuration recommendations have an effect on its presentation.

Show description

Read Online or Download Learning Perl/Tk: Graphical User Interfaces with Perl PDF

Similar object-oriented design books

Pro Active Record: Databases with Ruby and Rails

Professional lively list is helping you are taking good thing about the total strength of your database engine from inside of your Ruby courses and Rails functions. ActiveRecord, a part of the magic that makes the Rails framework so strong and simple to take advantage of, is the version component of Rails model/view/controller framework. Its an object-relational mapping library allowing you to have interaction with databases from either Ruby and Rails purposes.

Liferay 6.2 User Interface Development

Liferay employs a really good theming approach which will swap the feel and appear of the person interfaces. Liferay Portal presents structure templates so one can describe how a number of columns and rows are prepared to show portlets. It additionally offers issues that may be used to customise the final appear and feel of sites and web content.

Control flow semantics

Keep an eye on movement Semantics provides a unified, formal therapy of the semantics of a large spectrum of keep an eye on circulate notions as present in sequential, concurrent, common sense, object-oriented, and sensible programming languages. while in additional conventional techniques one makes a speciality of input/output habit, during this paintings equivalent cognizance is dedicated to finite and countless computations, the latter inspired by way of the transforming into significance of reactive platforms.

Apache Camel Developer's Cookbook

Apache Camel is a de-facto regular for constructing integrations in Java, and is predicated on well-understood company Integration styles. it really is used inside many advertisement and open resource integration items. Camel makes universal integration projects effortless whereas nonetheless delivering the developer with the ability to customise the framework while the placement calls for it.

Extra resources for Learning Perl/Tk: Graphical User Interfaces with Perl

Example text

Table 2-1. Valid screen units Designator Meaning Examples (none) Pixels (default) 20, 30, "20", "40" c Centimeters '3c', '4c', "3" i Inches '2i', "3i" m Millimeters $cs'4m', "4m" p Printer points (1/72 inch) "72p", '40p' To use these designators, it is necessary to use quotes (either single or double) around the value. Here are some examples: $button->pack(-ipdax $button->pack(-ipadx $button->pack(-ipadx $button->pack(-ipdax $button->pack(-ipadx $button->pack(-ipdax => => => => => => 20); '20'); "1i"); '1m'); '1); '20p'); # # # # # # 20 pixels Also 20 pixels 1 inch 1 millimeter 1 pixel 20 printer points Remember that a "p" designator does not stand for pixels, but printer points.

You can control resizing and the minimum size of a cell with the gridColumnconfigure and gridRowconfigure methods. Each takes a column or a row number as its first argument and then takes some optional arguments that will change the configuration of that column or row. Both gridColumnconfigure and gridRowconfigure work very similar to the configure method used with widgets. Unlike the configure method used with widgets, however, the options you can specify with gridColumnconfigure and gridRowconfigure cannot be used with the grid() command.

The first set of padding options affects the widget itself by adding to its default size. Different amounts can be added in the x and y direction, or they can be the same. To specify how much padding should occur in the x direction, use the ipadx option: -ipadx => amount Specify padding for the y direction like this: -ipady => amount The amount is a number that is a valid screen distance. I'll discuss the definition of a valid screen distance in the next section. Both the -ipadx and -ipady options change the size of the widget before the allocation rectangle is calculated.

Download PDF sample

Rated 4.20 of 5 – based on 41 votes