|Pathologically Eclectic Rubbish Lister|
I used your code and tried to force it to do what you describe. Unfortunately, I was unable to get it to work, but I'll keep trying.
What's happening is that you are creating a Frame widget then packing it, and creating a Canvas widget, then packing it ON TOP of the Frame widget.
To see this, I added the following, right before the MainLoop();...
This lowers the Canvas widget, $c in the stack of displayed widgets, placing it below the $cf Frame widget.
It sounds as though you are trying to mix widgets here... The Canvas widget allows you to draw lines, other shapes and create text. The Frame widget allows you to place other widgets, but not draw lines. A big difference between the two, as far as I can tell, is that the Canvas widget only allows you to place a Bitmap object, not other graphical formats, like those allowed by the $mw->Photo() method, like .gif files...
I'll keep digging around and see if I come up with anything... It's definitely an interesting question...
Update: I found a way to do this!! Basically, I put everything into the Canvas widget... And I did find a way to put other image types into a Canvas widget other than bitmaps... the $c->createImage() method works for that...
Here's the code I used to do this...