- or download this
our $dis = $mw->Entry( -width => '30' )->pack; # Changed width
+from 10 to 30
- or download this
sub CLxsub
{
...
$res='s';
}
- or download this
sub CLxsub {
$x = 0;
...
$res = 's';
}
- or download this
my $STO = $mw->Button(
-text => 'STO',
...
-background => 'black'
)->pack;
$STO->place(-x=>100 + $xxx,-y=>'170');
- or download this
sub button($$$$$;$$$$) {
my ($parent, $text, $pcmd, $x, $y, $fg, $bg, $width, $heig
+ht) = @_;
...
$b->place(-x => $x, -y => $y);
return $b;
}
- or download this
button($mw, 'Enter', [\&entersub], 197, 155);
button($mw, '+', [\&somasub], 353, 170);
...
button($mw, 'f', 0, $xxx+33, 170, 0, 'dg
+');
button($mw, 'OFF', sub{exit}, $xxx, 170);