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

By Nancy Walsh

Studying Perl/Tk is an instructional for Perl/Tk, the extension to Perl for growing graphical consumer interfaces. With Tk, Perl courses should be window-based instead of command-line established, 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 ideas, STDIN, and STDOUT, letting them construct graphical, event-driven purposes for either home windows and UNIX.This booklet is aimed toward Perl newbies and specialists alike. It explains the reasoning in the back of event-driven functions and drills in guidance on how you can most sensible layout graphical functions. It teaches how one can 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 every one button, menu, label and listbox within the window frame.Although this ebook doesn't educate simple Perl, someone who has written even the easiest Perl software can be capable of study Tk from this publication. The writing is breezy and casual, and will get correct to the purpose of what you must comprehend and why. The booklet is rife with illustrations that show how each one aspect is drawn and the way its configuration suggestions have an effect on its presentation.

Show description

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

Best object-oriented design books

Building Java Enterprise Systems with J2EE

The sensible attitude of establishing Java firm structures with J2EE presents the conceptual historical past and wealth of code examples had to really gather structures in an invaluable demeanour with the J2EE applied sciences. in addition, this publication demonstrates how the applied sciences supplement and construct on most sensible of each other through evolution of a cohesive and genuine pattern software.

Beginning Perl (Expert's Voice in Open Source)

This can be a publication for these people who believed that we didn’t have to research Perl, and now we all know it's extra ubiquitous than ever. Perl is intensely versatile and strong, and it isn’t frightened of internet 2. zero or the cloud. initially touted because the duct tape of the net, Perl has considering the fact that advanced right into a multipurpose, multiplatform language current completely all over: heavy-duty internet functions, the cloud, structures management, usual language processing, and fiscal engineering.

Developing Modular-Oriented Simulation Models Using System Dynamics Libraries (SpringerBriefs in Electrical and Computer Engineering)

This SpringerBrief introduces the advance and functional program of a module-oriented improvement framework for area particular system-dynamic libraries (SDL approach), which might be utilized in the simulation of multi-causal and dynamic relationships on varied degrees of an undefined, as an instance the development undefined.

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

Example text

Figure 2-24. Window before pressing Enlarge button Let's look at what happens when we press the Enlarge button. As shown in Figure 2-25, all the widgets are now repacked with additional parameters of -ipadx => 20, ipady => 20. These new options are in addition to any other parameters the widgets were packed with before. If an option is repeated, the last one specified overrides the previous ones. Figure 2-25. Window after pressing Enlarge button The window is suddenly huge! Subsequent presses of the Enlarge button will do nothing more to the window because all the widgets already have an -ipadx and -ipady of 20.

Sometimes it is necessary to change the options of the group of cells that makes up your grid. 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.

X" Effectively leaves a blank space where a widget would otherwise be placed. "^" A widget in row x will span row x and x + 1 when this character is placed in the grid command for row x + 1 in that row/column position. The number of "^" characters must match the number of columns the widget spans in row x. * The following sections include some examples that illustrate what the special characters do. 002, I got a nasty core dump. 0, so if you get this error also, check which version you have. Spanning columns The following bit of code creates three rows of buttons.

Download PDF sample

Rated 4.43 of 5 – based on 8 votes