Think about Loose Coupling | |
PerlMonks |
Duplicate views to a single canvas using Perl TKby Helter (Chaplain) |
on May 03, 2008 at 04:07 UTC ( [id://684302]=perlquestion: print w/replies, xml ) | Need Help?? |
Helter has asked for the wisdom of the Perl Monks concerning the following question:
I'm very new to Perl TK (read my first info this morning, so be easy correcting my possible slip ups in terminology...) I'm assisting a co-worker in editing an existing Perl TK application we use for debug. Currently it is a window, with a single frame, and a canvas in that frame. We would like to split the window so that we have the same content in an upper and lower view of the same data we had in the canvas already, but with independant scroll bars. We find that using this tool it would be helpful to have the header information that is printed at the top most of the time, but fairly often it would be nice to pull down the top canvas so we can compare things going on above and below (like splitting an editor screen in half and seeing 2 parts of the same file...at least in concept) We think we can solve this by duplicating the entirety of the canvas objects, but that seems heavy handed and sometimes the data that goes into generating these is fairly complex and time consuming. I wanted to believe that there was an easier way to do this than duplication, but my searches (for the last few hours) has come up empty.
Back to
Seekers of Perl Wisdom
|
|