Hallo,
ich etwas "Table" code in mein Projekt eingefügt, jedoch sehe ich kein widget
Hier der Code
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
my $number = 5;
my $row;
my $col;
my $table = $menframe->Table(-rows => $number,
-columns => $number,
-scrollbars => 'anchor',
-fixedrows => $number,
-fixedcolumns => $number,
-takefocus => 1);
my $widget = $table->Button(-text => 'Quit',-command => sub{exit 0});
my $old = $table->put(1,1,$widget);
$old = $table->put(1,2,"Text1"); # simple Label
$widget = $table->get(1,1);
$table->see($widget);
$widget = $table->Button(-text => 'Quit',-command => sub{exit 0});
$old = $table->put(2,1,$widget);
$old = $table->put(2,2,"Text2"); # simple Label
$widget = $table->get(2,1);
$table->see($widget);
my $cols = $table->totalColumns;
my $rows = $table->totalRows;
$table->see(1,1);
Wo liegt hier der Fehler ?
Danke
worstcase