1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
| #!/usr/bin/perl
use strict;
use warnings;
use Tk;
use Bio::SeqIO;
use List::MoreUtils qw/ uniq /;
my $FBgn_entry;
my $fenetre_principale = MainWindow->new( -title => 'Visualisation' );
$fenetre_principale->Label( -text => 'Entrez le FBgn : ')->place(-x => 100, -y => 5 );
my $entry = $fenetre_principale->Entry(
-background => 'white',
-textvariable => \$FBgn_entry,
)->place(-x => 200, -y => 5 );
my $mycanvas = $fenetre_principale->Scrolled('Canvas',
-scrollbars=>'oe',
- background => 'white',
-width => "1000" ,
-height => "500",
);
my $widget_texte = $fenetre_principale->Scrolled('Text',
-scrollbars => 'oe',
-setgrid=>'single',
);
# sequence du transcript
my $bouton = $fenetre_principale->Button(
-text => 'Sequence',
)->place(-x => 300, -y => 5);
my $clear_button = $fenetre_principale->Button(-text => "Clear",
-command => sub { $widget_texte->delete('0.0','end'),
$entry->delete(0,'end');}
)->place(-x => 400, -y => 5);
#$entry->pack();
#$bouton->pack();
#$clear_button->pack();
$mycanvas->pack();
$widget_texte->pack();
MainLoop; |
Partager