~ubuntu-branches/ubuntu/lucid/perl-tk/lucid

« back to all changes in this revision

Viewing changes to pod/overview.pod

  • Committer: Bazaar Package Importer
  • Author(s): Colin Tuckley
  • Date: 2008-02-15 13:56:59 UTC
  • mfrom: (1.1.3 upstream) (4.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20080215135659-ru2oqlykuju20fav
Tags: 1:804.028-1
* New Upstream Release (Closes: #463080).
* Update to Debhelper v5.
* Build with XFT=1 (Closes: #411129).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
=head1 NAME
3
3
 
4
 
B<Tk> - An overview of an Object Oriented Tk8.0 extension for perl5
 
4
B<Tk> - An overview of an Object Oriented Tk8 extension for perl5
5
5
 
6
6
=for category  Introduction
7
7
 
8
8
=head1 SYNOPSIS
9
9
 
10
 
use Tk;
11
 
 
12
 
$main = MainWindow-E<gt>new();
13
 
 
14
 
$widget = $main-E<gt>I<Widget>(...);
15
 
 
16
 
$widget-E<gt>pack(...);
 
10
C<< use Tk; >>
 
11
 
 
12
C<< $main = MainWindow-E<gt>new(); >>
 
13
 
 
14
C<< $widget = $main-E<gt>I<Widget>(...); >>
 
15
 
 
16
C<< $widget-E<gt>pack(...); >>
17
17
 
18
18
...
19
19
 
20
 
MainLoop;
 
20
C<< MainLoop; >>
21
21
 
22
22
=head1 DESCRIPTION
23
23
 
33
33
 
34
34
=item I<pTk> - Converted Tk source
35
35
 
36
 
The I<pTk> sub-directory is a copy of the C code of Tk4.0, modified
 
36
The I<pTk> sub-directory is a copy of the C code of Tk8.x, modified
37
37
to allow use by languages other than the original Tcl.
38
38
(The pTk can be read as 'perl' Tk or 'portable' Tk, depending on
39
39
your sensibilities.)
45
45
 
46
46
=item Perl code for 'Widget' Classes
47
47
 
48
 
The I<Tk/Tk> sub-directory contains the various perl modules that comprise
 
48
The I<Tk> sub-directory contains the various perl modules that comprise
49
49
the "Classes" that are visible to Tk applications.
50
50
 
51
51
The "major" widgets such as B<Tk::Text> are actually in separate directories
103
103
 
104
104
=item B<Tk::Image>
105
105
 
106
 
This does for Tk4.0's "images" what B<Tk::Widget> does for widgets.
107
 
Images are new to Tk4.0 and the class structure is not mature either.
 
106
This does for Tk8.x's "images" what B<Tk::Widget> does for widgets.
 
107
Images are new to Tk8.x and the class structure is not mature either.
108
108
 
109
109
There are three sub-classes B<Tk::Bitmap>, B<Tk::Pixmap> and B<Tk::Photo>.
110
110
 
111
 
It is expected that B<Tk::Image> hierarchy will evolve during the "beta"
112
 
phase of Tk to allow dynamic or auto-loaded image types or photo formats
113
 
(e.g. support for JPEG format for photos).
 
111
It is possible to create dynamic or auto-loaded image types inherited
 
112
from B<Tk::Image> for other image types or photo formats (e.g. support
 
113
for TIFF format).
114
114
 
115
115
=item Composite Widgets
116
116