|Just another Perl shrine|
Unbind canvas items and Forgetby Phinix (Acolyte)
|on Oct 31, 2012 at 01:46 UTC||Need Help??|
Phinix has asked for the
wisdom of the Perl Monks concerning the following question:
Greetings meisters and monks! I've lurked around this place for many years, each time I've taken on a Perl project. Sadly I was born in America and not Europe where they actually value education, and so am expected to go tens of thousands of dollars into debt to learn anything, leaving me with the internet and late fees at the public library as my only affordable or equitable path to knowledge. Recently I have been attempting a simple application that uses a Canvas to create a background image, then places some additional sized canvases around on top of it as pseudo buttons, bound to mouse events, with image backgrounds over them so that they blend in with the main canvas background. So, first I define the main canvas and background.
Then I make the various sub-canvas pseudo buttons (because bind wants a widget and canvas allows a background image):
Further down I bind these sub-canvas buttons to mouse events:
Later in the script I want to be able to mass-delete and formForget all of these sub-canvas objects. However, when I attempt to do this to an array containing the names of all these psuedo button canvas objects like this:
...Perl complains at me saying:
So, my question is, how can I mass-unbind all these sub-canvas canvas psuedo buttons and unpack them?