Using a canvas control : Canvas « GUI « Perl






Using a canvas control

 


#!/usr/local/bin/perl -w
use Tk;
use strict;

my $mw = MainWindow->new;
my $c= $mw->Canvas->pack(-fill => 'both', -expand => 1);

$c->createArc(0,0,100,150, -extent => 270);

MainLoop;

   
  








Related examples in the same category

1.Create Oval
2.Create Polygon
3.Create Rectangle
4.Draw image on a canvas
5.Draw line
6.Set 'fill' for shape