in reply to Tk::Canvas too wide for MainWindow

After read your post, I tried my code in this post Re: A Canvas and a Scrollbar with Tk, and it does not work with 5.8.4. It is unclear which version of Perl was used at that time.

Replies are listed 'Best First'.
Re^2: Tk::Canvas too wide for MainWindow
by pg (Canon) on Jul 23, 2005 at 16:04 UTC

    Okay, fixed my own code. This works with 5.8.4:

    use Tk; use strict; use warnings; my $main = new MainWindow(); my $canvas = $main->Scrolled('Canvas', -scrollregion => [0,0,1000,500], )->pack(-fill=>"both"); $canvas->createOval(100,100,500,500); MainLoop;
Re: Tk::Canvas too wide for MainWindow
by benizi (Hermit) on Jul 23, 2005 at 16:05 UTC