Schrift
[thread]5314[/thread]

Anfrage an die FAQ: Grundsätzliches TK-Problem (Seite 2)



<< |< 1 2 >| >> 14 Einträge, 2 Seiten
Strat
 2007-05-20 12:04
#46335 #46335
User since
2003-08-04
5246 Artikel
ModeratorIn
[Homepage] [default_avatar]
teste vielleicht mal anstelle von
Code: (dl )
1
2
push(@listboxes, $f2->Listbox()->pack (-side => 'left', -expand => 1, -fill => 'both'));
$f2->Scrollbar(-command, [yview => $listboxes[$_]])->pack (-side => 'left', -expand => 1, -fill => 'both');

folgendes:
Code: (dl )
1
2
3
4
push( @listboxes,
$f2->Scrolled( -scrollbars => 'osoe' ) # optional sueden, optional osten
->pack( -side => 'left', -expand => 1, -fill => 'both' )
);
\n\n

<!--EDIT|Strat|1179648324-->
perl -le "s::*erlco'unaty.'.dk':e,y;*kn:ai;penmic;;print"
http://www.fabiani.net/
Gast Gast
 2007-05-20 17:13
#46336 #46336
Danke für die Hilfe, aber das funktioniert irgendwie nicht.

Code: (dl )
1
2
3
4
push( @listboxes,
$f2->Scrolled( -scrollbars => 'osoe' ) # optional sueden, optional osten
->pack( -side => 'left', -expand => 1, -fill => 'both' )
);


der interpreter schreibt mir nämlich folgende fehlermeldung hin:

Code: (dl )
1
2
3
4
5
Attempt to load 'Tk::Frame::-
Tk::Widget::AUTOLOAD(
d at C:/Perl/lib/Tk/Widget.pm
Tk::Widget::Scrolled(
called at C:\bsp1.pl line 53


was könnte da der fehler sein? ;)
styx-cc
 2007-05-20 21:18
#46337 #46337
User since
2006-05-20
533 Artikel
BenutzerIn

user image
Versuchs ma mit:
Code: (dl )
1
2
3
4
push( @listboxes,
$f2->Scrolled('Listbox', -scrollbars => 'osoe' ) # optional sueden, optional osten
->pack( -side => 'left', -expand => 1, -fill => 'both' )
);


Musst ihm ja sagen was du "scrolled" haben willst, ne Listbox, ne HList etc.\n\n

<!--EDIT|styx-cc|1179681644-->
Pörl.
Gast Gast
 2007-05-20 22:02
#46338 #46338
Danke euch nochmals recht herzlich dafür. Das ist ja cool, wenn die Scrollbar erst dann auftaucht, wenn die Listbox länger wird. Danke euch noch einmal. ;)
<< |< 1 2 >| >> 14 Einträge, 2 Seiten



View all threads created 2007-05-18 01:52.