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

Steve Solomon strider1066 at gmail.com
Fri Oct 14 20:03:24 CEST 2011


Hi,
I'm a bit in the tall weeds, please excuse the mess (in the attached code).

steve

On Thu, Oct 13, 2011 at 12:27 PM, Lion Kimbro <lionkimbro at gmail.com> wrote:

>
>   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/20111014/17f5356f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: palettebuilder.py
Type: application/octet-stream
Size: 8128 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20111014/17f5356f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: application/octet-stream
Size: 2359 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20111014/17f5356f/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: colorservices.py
Type: application/octet-stream
Size: 661 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20111014/17f5356f/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: classpoint.py
Type: application/octet-stream
Size: 1197 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20111014/17f5356f/attachment-0003.obj>


More information about the Tkinter-discuss mailing list