pyqt / maya2016-qt4 Goto Github PK
View Code? Open in Web Editor NEWPyQt4 for Autodesk Maya 2016
PyQt4 for Autodesk Maya 2016
I try to make a image repeater ,so i choose animation of QPropertyAnimation as method.
the image will display for 3s
and then clear for 1s , and then display next one.
normal animation code is:
def imgstart(self,i):
self.loadimg()
#i=-1 can clear image in label
if i== -1:
self.ui.imgShow_label.clear()
else:
animation =QPropertyAnimation(self.ui.imgShow_label,"pos")
animation.setDuration(500)
animation.setStartValue(QPoint(360, 50))
animation.setEndValue(QPoint(10,50))
animation.setEasingCurve(QEasingCurve.InOutCubic)
#display image
self.ui.imgShow_label.setPixmap(self.pixmap[i])
#image canimation
animation.start()
By common sense ,this code shoud work successfully.but ,it can't.
i add a wrong code follow the code by accident:
for i in 1:
pass
The animation moves!!!
the wrong code made this animation moves!!also print error message:
Traceback (most recent call last):
File "error_code_rate.py", line 191, in imgstart
for i in 1:
TypeError: 'int' object is not iterable
This is a strange bug
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.