On Thursday September 9 2010 20:33:03 sa6113 wrote:
> I want to use backendQtAgg inorder to imbed plot dialog into basic dialog
> and by clicking the labels open plot option.
> I couldn't use 'motion_notify_event' because the event only handles into
> plot area not in canvas area!!!
> anybody knows?
Hi,
maybe your problem was solved meanwhile, but if not I've got an idea about it.
I think you have to adapt the framework used in the widgets.py defining the
class CheckButtons. There one connects the button_press_event to a method
_clicked and in this method it is checked wheter or not the click was inside
the area associated with the label
t.get_window_extent().contains(event.x, event.y)
I admit my late reply, but maybe it is useful anyway.
Kind regards,
Matthias
|