The stupid question is the question not asked | |
PerlMonks |
Undesired space between Tk Canvasesby liverpole (Monsignor) |
on Apr 25, 2007 at 00:10 UTC ( [id://611882]=perlquestion: print w/replies, xml ) | Need Help?? |
liverpole has asked for the wisdom of the Perl Monks concerning the following question:
I'm sure I'm missing something obvious here.
Within my Perl/Tk application, I'd like to have a 256x256 white Canvas in the center of 4 other Canvas objects (of different colors here, while debugging). I've tried every option I can think of, searched for a possible solution, and perused the most recent volume of "Mastering Perl/Tk" -- all to no avail. Here is a stripped down version of my original program which still shows the problem. When you run it, you get a white Canvas in the middle of 4 Canvas "strips" of other colors. I'd like the Canvas objects to all be flush with one another, but there's a little space between each of them. I know this has to be something simple and easy, but I'm just not seeing it. It's not the enclosing Frame (at least I don't think it is), because the Frame has a blue background, and there isn't any blue showing through anywhere. Can someone point me to a solution? Thanks!
Update: After Super-Searching some more, I came across this node, by the venerable zentara. He used a Canvas option I hadn't tried: -highlightthickness => 0. Although I'm still not exactly sure what highlightthickness is used for, it does the trick; inserting the following line completely addresses my problem:
Thanks, zentara -- you help me even when you're not logged in! s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
Back to
Seekers of Perl Wisdom
|
|