Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Tk::Listbox: 2 questions: performance and alignment

by busunsl (Vicar)
on Oct 11, 2002 at 07:03 UTC ( [id://204431]=note: print w/replies, xml ) Need Help??


in reply to Re: Tk::Listbox: 2 questions: performance and alignment
in thread Tk::Listbox: 2 questions: performance and alignment

I'm not sure what you mean, do you want to store the data from the ListBox using Storable, for example?

No, I didn't mean the freeze/thaw methods.

Do you want to hide the widget?

Yes, something like that. But with packForget and pack it's hard to put the widget into the same place. I thought there was another method.

# "-anchor" specifies how the information in a widget (e.g.
# text or a bitmap) is to be displayed in the widget.

I know, but this doesn't work:

my $MW = MainWindow->new(); $lb = $MW->Listbox()->pack(); $lb->configure(-anchor => 'e');
Gives just:
Bad option `-anchor' at yy.pl line 12.
I also tried -justify without success.

Replies are listed 'Best First'.
Re: Re: Re: Tk::Listbox: 2 questions: performance and alignment
by hiseldl (Priest) on Oct 11, 2002 at 14:01 UTC

    Is sounds like you need the grid layout manager instead, and the analagous method gridForget. Grid allows you to place everything in cells which gives you a finer level of control over the placement of your widgets.

    Check out this node for an example of how to use the grid layout manager. If you have any questions, leave a note here, or you can /msg hiseldl.

    --
    hiseldl
    What time is it? It's Camel Time!

      Yes, you're right, I can try grid or put the listbox in a frame of its own.

      Thanks!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-19 18:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found