Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^4: Tk: Scaling canvas objects

by perldough (Sexton)
on Jul 24, 2012 at 19:23 UTC ( [id://983510]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Tk: Scaling canvas objects
in thread Tk: Scaling canvas objects

That fix works for me too! Thanks! =D

Sorry, but I don't think I understand why this is necessary. Why didn't I have this problem when I had the whole thing running out of a single file?

Thanks,
Perldough

Replies are listed 'Best First'.
Re^5: Tk: Scaling canvas objects
by zentara (Archbishop) on Jul 24, 2012 at 21:17 UTC
    I'm not sure why it works in a monolithic script, but not in your modules. It must have something to do with how the Scrolled widget works, and your module's @ISA. This is not the only time you will encounter this with Scrolled Canveses or Text widgets. Most of the Scrolled widget's internals get passed on, but some don't. The most notable of these is using Balloons on Scrolled widgets.... you most often need to bind to the actual Subwidget, the Scrolled widget is finicky.

    By the way, if you are serious about zooming, rotating, and scaling on a Canvas, you should look at Tk::Zinc, it still works well even if it isn't being maintained.


    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://983510]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-03-28 17:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found