Tk-Contrib
view release on metacpan or search on metacpan
lib/Tk/Axis.pm view on Meta::CPAN
=cut
use strict;
require Tk::Canvas;
use Carp;
use vars qw($VERSION @ISA);
$VERSION = substr(q$Revision: 1.5 $, 10) + 1;
@ISA = qw(Tk::Derived Tk::Canvas);
Construct Tk::Widget 'Axis';
# Added since v 0.1
# -----------------
# - plx en ply allow you to work in axis coordinates
# (eg. $t->create('line', $t->plx(.3), $t->ply(.4), $t->plx(3.2),
# $t->ply(5.3)); )
# - pack is moved out.
lib/Tk/Axis.pm view on Meta::CPAN
# 2D plot script. He also asked the question "why don't you write a new
# widget for it ?"
# - Nick Ing-Simmons (nik@tiuk.ti.com) without who there would be no ptk
# and whose advice was invaluable while trying to create this widget
#
# It is used as follows
#
# require Axis;
#
sub Populate #using Populate from Tk::Derived
{
my ($w,$args) = @_;
$w->SUPER::Populate($args);
$w->ConfigSpecs(
'-xmin' => ['PASSIVE',undef,undef,0],
'-xmax' => ['PASSIVE',undef,undef,100], #undef],
'-ymin' => ['PASSIVE',undef,undef,0],
'-ymax' => ['PASSIVE',undef,undef,100], #undef],
'-margin' => ['PASSIVE',undef,undef,25],
'-tick' => ['PASSIVE',undef,undef,10],
lib/Tk/Dial.pm view on Meta::CPAN
package Tk::Dial;
use strict;
require Tk::Frame;
use vars qw($VERSION @ISA);
$VERSION = substr(q$Revision: 1.5 $, 10) + 1;
@ISA = qw(Tk::Derived Tk::Frame);
my $pi = atan2(1, 1) * 4;
Construct Tk::Widget 'Dial';
=head1 NAME
Tk::Dial - An alternative to the Scale widget
=for category Derived Widgets
lib/Tk/TiedListbox.pm view on Meta::CPAN
package Tk::TiedListbox;
use strict;
use Tk::Listbox;
use Carp;
use vars qw($VERSION @ISA);
$VERSION = substr(q$Revision: 1.5 $, 10) + 1;
@ISA = qw(Tk::Derived Tk::Listbox);
Tk::Widget->Construct('TiedListbox');
use Tk::Submethods ( 'tie' => [qw(scroll selection all)],
'selection' => [qw(anchor clear includes set)],
'scan' => [qw(mark dragto)]
);
( run in 0.820 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )