Skip to content
Discussion options

You must be logged in to vote

Ahah! I had searched the docs for _at and location and a whole bunch of other terms that didn't get me anything. I decided to Use the Source, Luke, especially since I already had the source locally so I could check out the demo code.

I knew the mouse_over attribute existed so I went and found where that was, which led me to a few places ending up at the get_widgets_at function. That actually gives me exactly what I need:

for widget in self.screen.get_widgets_at(*self.mouse_position):
    if widget.id and widget.id.startswith('some-col-'):
         widget.mount(my_new_widget)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by waynew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant