fast has asked for the wisdom of the Perl Monks concerning the following question:

Monks please help.
I try to set the canvas border to 0 and make sure -padx/y is 0 however, I can't get the two canvas to display next to each other. There is like 2 pixel apart and it showing the background. I spend 2 hours on this and couldn't get to to work. Is there a canvas configuration to fix this?
thanks all.

Replies are listed 'Best First'.
Re: TK Canvas border
by zentara (Cardinal) on Feb 23, 2010 at 11:34 UTC
Re: TK Canvas border
by Anonymous Monk on Feb 23, 2010 at 02:48 UTC
Re: TK Canvas border
by hangon (Deacon) on Feb 23, 2010 at 10:46 UTC

    The problem is most likely with your geometry manager arguments. However you are not likely to get any useful help unless you show the code where your problem lies. And please remember to enclose it in <code></code> tags.

Re: TK Canvas border
by lamprecht (Friar) on Feb 23, 2010 at 11:47 UTC
    use strict; use warnings; use Tk; my $mw = MainWindow->new(); $mw->Canvas(-bg => 'red', -highlightthickness => 0, )->pack; $mw->Canvas(-bg => 'green', -highlightthickness => 0, )->pack; $mw->MainLoop;

    Cheers,Christoph
      Thank you all for reading and replying. Christoph solve my problem. I couldn't believe I didn't see the highlightthickness option.