troubleshooting Question

Tk - Changing width of frame (Progressbar)

Avatar of csnell
csnell asked on
Programming Languages-OtherPerl
1 Comment1 Solution287 ViewsLast Modified:
This is a small problem but its really annoying me.
Here is my code for a progress bar which pops up when my program begins running.
$progressbar = $mw->Toplevel();
    $progressbar->title("Progress of Conversion");
        -width => 30,
        -from => 0,
        -to => 100,
        -blocks => 20,
        -colors => [0, 'green', 50, 'yellow' , 80, 'red'],
        -variable => \$percent_done)->pack(-fill => 'x');

The window that pops up is small and you can only read the first few characters of the title. The progressbar is obviously also small. I thought I could change the width by putting $progressbar = $mw->Toplevel(-width => 100);
This doesn't do anything.
How can I change the width of my window that pops up and have the progress bar fill it?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros