Thread MListbox + Scrolled - Problem (7 answers)
Opened by GoodFella at 2007-06-13 04:34

GoodFella
 2007-06-13 12:44
#46468 #46468
User since
2007-01-09
192 Artikel
BenutzerIn
[default_avatar]
Ein weiteres Problem ist, dass ich den Fehler nicht reproduzieren kann.

Das Script hier:

Code: (dl )
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
#!/usr/bin/perl

use Tk;
use Tk::NoteBook;
use Tk::MListbox;

$mw = MainWindow->new();
$mw->geometry( "550x550" );
$book = $mw->NoteBook()->pack( -fill=>'both', -expand=>1 );

$tab1 = $book->add( "Sheet 1", -label=>"1" );
$tab2 = $book->add( "Sheet 2", -label=>"2" );
$tab3 = $book->add( "Sheet 3", -label=>"3" );


my @job_cols = ( [-text => 'Datum', -width => 10],
[-text => 'Firma', -width => 15],
[-text => 'Priorität', -width => 5] );
$mlb_job = $tab1->Scrolled('MListbox',
-moveable => 1, -width => 165, -height => 27,
-scrollbars => 'e',
-columns => [@job_cols] );

$mlb_job->place( -x => 310, -y => 10 );


my @_cols = ( [-text => 'Datum', -width => 10],
[-text => 'Firma', -width => 15],
[-text => 'Priorität', -width => 5] );
$_job = $tab2->Scrolled('MListbox',
-moveable => 1, -width => 165, -height => 27,
-scrollbars => 'e',
-columns => [@_cols] );

$_job->place( -x => 310, -y => 10 );

$tab1->Label( -textvariable=>\$starttime )->pack( -expand=>1 );
$tab2->Label( -textvariable=>\$raisetime )->pack( -expand=>1 );
$tab3->Button( -text=>'Quit', -command=>sub{ exit; } )->pack( -expand=>1 );

MainLoop;

verhält sich wie erwartet.

Ich habe mal meinen Monstercode hochgeladen:
Vielleicht findet jemand die Ursache des Problems..

http://flux.pldsecurity.de/mmj.txt


Gruss


Pete

View full thread MListbox + Scrolled - Problem