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 48 49 50 51 52 53 54 55 56 57
| # ===== ONGLET CONTROLE =====
$onglet_controle->Label(
-text => "\nCONTRÔLE\n\n",
-font => '{Comic Sans MS} 11 {bold}',
-background => 'white',
-foreground => '#CF0063',
)->pack();
$onglet_controle->Label(
-text => "Entrer le code-barre du document :",
-font => '{Comic Sans MS} 11',
-background => 'white',
-foreground => '#CF0063',
)->pack();
$onglet_controle->Label( -background => 'white',)->pack();
my $cb=$onglet_controle->Label(
-text => ' Code-barre : ',
-font => '{Comic Sans MS} 9',
-background => 'white',
-foreground => '#CF0063',
);
$cb->pack(qw/ -side top/);
my $entree_codebarre = $onglet_controle->Entry()->pack(qw/ -side left/);
# ===== BOUTON CONTROLE =====
my $ObjImage = $onglet_controle-> Photo (-file=>"loupe.jpg");
my $bouton_controle = $onglet_controle->Button(
-image => $ObjImage,
-command => [ \&subone, $onglet_controle, $entree_codebarre ],
-foreground => '#CF0063',
-background => 'white',
);
$bouton_controle->pack(qw/ -ipady 1 -ipadx 1 -padx 4/,-side =>'left');
# ===== BOUTON SUPPRIMER =====
my $ObjImage2 = $onglet_controle-> Photo (-file=>"supp.jpg");
my $bouton_supprimer=$onglet_controle->Button(
-image => $ObjImage2,
-command => [ \&subthree, $onglet_controle, $entree_codebarre ],
-foreground => '#CF0063',
-background => 'white',
);
$bouton_supprimer->pack(qw/ -ipady 1 -ipadx 1 -padx 2/,-side =>'left'); |
Partager