Test if model updates when I change view using mouse click events

classic Classic list List threaded Threaded
2 messages Options
sb
Reply | Threaded
Open this post in threaded view
|

Test if model updates when I change view using mouse click events

sb
Hi all.

How do I test to see if the model updates when I change the view programmatically using mouse click events?

This is a chaco + PyQt4 application with points on a graph that I can drag up and down.

I am trying to automate this test like so:


But get the exception:



1. Is there a better/easier/more elegant way to do this (perhaps not using Qt Mouse events, but instead some traits based event)?

2. Or should I just find the right widget I need to pass in?

Thanks in advance for your help.
--
Simon

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: Test if model updates when I change view using mouse click events

Didrik Pinte-2
Hi Simon,

There is a start with the Traits testing tools
(http://docs.enthought.com/traits/traits_api_reference/traits.testing.html).
We have an extension of that of Enable that allows you to properly
simulate mouse events. This is currently internal but might be
available soon.

-- Didrik

On 12 September 2013 18:01, sb <[hidden email]> wrote:

> Hi all.
>
> How do I test to see if the model updates when I change the view
> programmatically using mouse click events?
>
> This is a chaco + PyQt4 application with points on a graph that I can drag
> up and down.
>
> I am trying to automate this test like so:
>
> http://bpaste.net/show/131824/
>
> But get the exception:
>
> http://bpaste.net/show/131826/
>
>
> 1. Is there a better/easier/more elegant way to do this (perhaps not using
> Qt Mouse events, but instead some traits based event)?
>
> 2. Or should I just find the right widget I need to pass in?
>
> Thanks in advance for your help.
> --
> Simon
>
> _______________________________________________
> Enthought-Dev mailing list
> [hidden email]
> https://mail.enthought.com/mailman/listinfo/enthought-dev
>



--
Didrik Pinte                               +32 475 665 668
                                                +44 1223 969515
Enthought Europe                      [hidden email]
Scientific Computing Solutions   http://www.enthought.com

The information contained in this message is Enthought confidential &
not to be dissiminated to outside parties without explicit prior
approval from sender.  This message is intended solely for the
addressee(s), If you are not the intended recipient, please contact
the sender by return e-mail and destroy all copies of the original
message.
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev