文档详情

Perl-TK向导,窗口编写.pdf

发布:2024-05-03约11.53万字共48页下载文档
文本预览下载声明

Perl/Tk

Tutorial

­

Create

GUI

with

Perls

Tk

Module

Introduction2

Applications2

Philosophy2

Perl/Tk

Requirements3

Installing/Using

Perl3

Hello

World3

Widgets

1

:

Button,

Entry,

Label5

Button6

Entry6

Label7

Widgets

2

:

Frame,

Text,

Scrollbar,

Scale8

Frame8

Text8

Scrollbar9

Scale11

Dialogs12

messageBox12

chooseColor13

getOpenFile13

Toplevel14

Widgets

3

:

Radiobutton,

Checkbutton15

Radiobutton15

Checkbutton16

Widgets

4

:

Listbox18

Listbox18

Widgets

5

:

Menubutton,

Menu,

Optionmenu20

Menubutton20

Menu21

Optionmenu23

Some

more

Widgets

­

Canvas,

Message,

Adjuster,

Scrolled24

Canvas24

Message24

Adjuster24

Scrolled25

Geometry

Management

:

Grid,

Pack26

grid26

pack27

Some

Common

Widget

Options28

Some

Tk

Commands29

Bind29

Now

What?31

Reference31

Books31

Manual31

External

Sites31

Appendix31

Appendix

A

:

About

the

Author31

Appendix

B

:

Commonly

Made

mistakes

in

Perl/Tk32

Appendix

C

:

Tcl/Tk

And

Perl/Tk32

Appendix

D

:

Codes32

Appendix

E

:

FeedBacks33

Appendix

F

:

Comments33

Index33

Introduction33

Hello

World36

Widget

138

Widget

240

Widget

543

Widget

644

Geometry

Management44

Now

What?46

Appendix48

Introduction

Perl/Tk

(also

known

as

pTk)

is

a

collection

of

modules

and

code

that

attempts

to

wed

the

easily

configured

Tk

8

widget

toolkit

to

the

powerful

lexigraphic,

dynamic

memory,

I/O,

and

object­oriented

capabilities

of

Perl

5

In

other

words,

it

is

an

interpreted

scripting

language

for

making

widgets

and

programs

withGraphical

User

Interfaces

(GUI)

Perl

orPractical

Extraction

and

Report

Language

is

described

by

Larry

Wall,

Perls

author,

as

follows:

Perl

is

an

interpreted

language

optimized

for

scanning

arbitrary

text

files,

extracting

information

from

显示全部
相似文档