How by clicking an axes label open a dialog?

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?

···

View this message in context: How by clicking an axes label open a dialog?

Sent from the matplotlib - users mailing list archive at Nabble.com.

Whould you please help me? I am looking forward.

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?

--
View this message in context: http://old.nabble.com/How-by-clicking-an-axes-label-open-a-dialog--tp29661031p29715956.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Whould you please help me? I am looking forward.

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?

--
View this message in context: http://old.nabble.com/How-by-clicking-an-axes-label-open-a-dialog--tp29661031p29715986.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

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

···

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?