New submission from Vincent <inqu...@intoreflection.co>:
canvas.bbox() should return a tuple containing values whether an item is hidden or not. canvax.coords() does return a tuple when an item is hidden. Steps to reproduce: ``` from tkinter import * root = Tk() canvas = Canvas(root) id1 = canvas.create_line(10,5,20,5, tags='tunnel') id2 = canvas.create_line(10,8,20,8, tags='tunnel') canvas.bbox('tunnel') # return a tupple canvas.itemconfig('tunnel', state='hidden') canvas.bbox('tunnel') # return nothing not even None ``` I need bbox to return a tuple containing values. The consequences is that the code must make the items temporarily visible before it can invoke the bbox function. This turning on and off creates flashing items in my program. Thanks in advance! ---------- components: Tkinter messages: 388432 nosy: Vincent priority: normal severity: normal status: open title: canvas.bbox returns None on 'hidden' items while coords doesn't versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43462> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com