Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Re: Scrollbars in Perl::Tk

by PodMaster (Abbot)
on Jan 15, 2004 at 07:01 UTC ( [id://321488]=note: print w/replies, xml ) Need Help??


in reply to Re: Scrollbars in Perl::Tk
in thread Scrollbars in Perl::Tk

You cannot pass Frame widget to Scrolled.
I know you can(works for me).
#!/usr/local/bin/perl -W #tk.scroll.frame.pl use Tk; use strict; use vars qw($top $drop); $top = new MainWindow; $top->Label(-text => "Enter the scroll frame")->pack; $top = $top->Scrolled('Frame', -scrollbars => "osoe",)->pack; $top->Label(-text => "Inside the scroll frame")->pack; $top->Label(-text => "Inside the scroll frame")->pack; $top->Label(-text => "Inside the scroll frame")->pack; $top->Label(-text => "Inside the scroll frame")->pack; $top->Label(-text => "Inside the scroll frame")->pack; $top->Label(-text => "Inside the scroll frame")->pack; $top->Label(-text => "Inside the scroll frame")->pack; $top->Label(-text => "Inside the scroll frame")->pack; $top->Label(-text => "Inside the scroll frame")->pack; $top->Label(-text => "Inside the scroll frame")->pack; $top->Label(-text => "Inside the scroll frame")->pack; MainLoop;
Anonymous Monk isn't showing enough code, but my ESP tells me he's got a logical error (not packing the frame he needs/wants it or not having it as a child of his scrollable frame or something).

update: screenshot on my Win2K box, perl5.6.1, Tk 800.025.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re: Re: Re: Scrollbars in Perl::Tk
by converter (Priest) on Jan 15, 2004 at 22:44 UTC

    For what it's worth, the example you posted runs without errors here, but yields a window without scrollbars.

    Tk 800.024, Perl 5.8.0, on a gentoo linux install running mostly stable packages.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://321488]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-23 05:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found