Re: [Maya-Python] Re: Animated Gif Widget triggered during mouse Hover Over

2020-03-09 Thread pdwiens
Thanks for posting this - I used it and it works perfectly for my needs. On Wednesday, 9 September 2015 15:17:02 UTC-7, Antonio Govela wrote: > > Sorry.. it was late and was getting kinda lost. So I managed to clean the >>> code and actually trigger an animated gif widget using events. >> widgets

Re: [Maya-Python] Re: Animated Gif Widget triggered during mouse Hover Over

2015-09-09 Thread Antonio Govela
The MouseMove event seems to trigger the movie.start only once. so even if the event keeps triggering with a slight mouse move (which it does) the gif plays through and loops, which is the functionality I was looking for. I'm looking into your suggestion about reimplementing event() on the cla

Re: [Maya-Python] Re: Animated Gif Widget triggered during mouse Hover Over

2015-09-09 Thread Justin Israel
Thanks for doing the pastebin. Much better. Wouldn't the event trigger at each pixel move, and call start? Also, you don't need to install an event filter if you are installing it on itself. It would be the same as just reimplementing event() on that class. On Thu, Sep 10, 2015 at 10:28 AM Kuri

Re: [Maya-Python] Re: Animated Gif Widget triggered during mouse Hover Over

2015-09-09 Thread Kurian O.S
http://pyqt.sourceforge.net/Docs/PyQt4/qmovie.html#started did you check the default signals from QMovie ? On Wed, Sep 9, 2015 at 3:17 PM, Antonio Govela wrote: > Sorry.. it was late and was getting kinda lost. So I managed to clean the >>> code and actually trigger an animated gif widget using

Re: [Maya-Python] Re: Animated Gif Widget triggered during mouse Hover Over

2015-09-09 Thread Antonio Govela
> > Sorry.. it was late and was getting kinda lost. So I managed to clean the >> code and actually trigger an animated gif widget using events. > widgets can be added with classes and respond independently to the 'hover >> over and leave' mouse tracking. > > Here's the code: http://pastebin.co

Re: [Maya-Python] Re: Animated Gif Widget triggered during mouse Hover Over

2015-09-09 Thread Justin Israel
Can you please just use a pastebin? This code is hard to read. I'm also having trouble following some of the usages in here... such as the persistent model index, and calling to the QTableWidget eventFilter, randomly. On Wed, Sep 9, 2015 at 5:30 PM Antonio Govela wrote: > I cleaned up the code

[Maya-Python] Re: Animated Gif Widget triggered during mouse Hover Over

2015-09-08 Thread Antonio Govela
I cleaned up the code a bit...I just realized since I hadn't restarted maya for a while, the code was not working because I moved a class around. Still stuck though. Thanks! code: from PySide import QtGui from PySide import QtCore import PySide.QtCore as qc import PySide.QtGui as qg from P

[Maya-Python] Re: Animated Gif Widget triggered during mouse Hover Over

2015-09-08 Thread Antonio Govela
I cleaned up the code a bit...I just realized since I hadn't restarted maya for a while, the code was not working because I moved a class around. from PySide import QtGui from PySide import QtCore import PySide.QtCore as qc import PySide.QtGui as qg from PySide.QtCore import * from PySide.QtGui