Mar-27-2020, 03:06 AM
I'm new to Python, and way out of practice (15+ years out of practice) with any sort of programming. I don't have example code as I'm in the planning phase, and I'm not really sure how to ask what I'm looking for, so please bear with me.
I'm working on a project that will have a canvas. The user will be able to draw boxes and assign properties to the boxes.
I'd like to know if there's a way to detect whether a user's box exists at the mouse coordinates so that I can take one set of actions if there's no box there and get the user-defined properties of the box if there is one.
Most of this I can figure out. But how does one detect whether there's a box under the cursor if the box isn't a tkinter widget?
I'm working on a project that will have a canvas. The user will be able to draw boxes and assign properties to the boxes.
I'd like to know if there's a way to detect whether a user's box exists at the mouse coordinates so that I can take one set of actions if there's no box there and get the user-defined properties of the box if there is one.
Most of this I can figure out. But how does one detect whether there's a box under the cursor if the box isn't a tkinter widget?