[Tkinter-discuss] Limit to the number of canvases in a top_level object?

Lion Kimbro lionkimbro at gmail.com
Thu Oct 13 21:27:36 CEST 2011


  Would you (or someone) attach some sample code?

  That would make it easier to see if we can repro.


On Thu, Oct 13, 2011 at 10:49 AM, Steve Solomon <strider1066 at gmail.com>wrote:

> Hello,
>
> Is there  a limit to the number of canvases in a top_level object -- one
> maybe ? I have been trying to solve this problem with an application for
> several weeks. In the application I have two canvases, each with a grid of
> rectangle objects. They display perfectly but when I try to interact with
> the rectangles they behave anomalously. Using canvas.find_closest(event.x,
> event.y) the rectangles in the first drawn canvas behave normally, allowing
> configuring each, but within the second canvas the rectangles report back
> the id of only one of the rectangles and an attempt to change the fill-color
> of any one is applied only to the last item in the grid.
>
> Your thoughts would be appreciated, thank you
>
> Steve
>
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20111013/6aa6412f/attachment.html>


More information about the Tkinter-discuss mailing list