That's just a variation of the last example. But you would add extra step values in between the start and end values:
https://gist.github.com/3803172#file_shakey_dialog.py On Saturday, September 29, 2012 10:45:11 AM UTC-7, 宇 wrote: > > [image: 内嵌图片 1] > New question, I want to make the ui shaking when the password is wrong, > but how to update the new animation after the last loop > > 2012/9/30 Justin Israel <[email protected] <javascript:>> > >> Do you mean it animated to slowly? Adjust the setDuration() to a number >> smaller than 700ms. I set it a bit slow so that you can see what it does >> easily. Probably 250 will be better. >> >> >> On Sep 28, 2012, at 10:33 PM, 张宇 <[email protected] <javascript:>> wrote: >> >> Not fast but cool. I want to use it as login window. >> And you are so coooool >> >> 2012/9/29 Justin Israel <[email protected] <javascript:>> >> >>> Oh wow, I had to look really closely. You mean that small pop up dialog >>> with the text edit field that animates really really fast? You can >>> accomplish that with a QPropertyAnimation. You will need to be using a Qt >>> version 4.6+ >>> >>> https://gist.github.com/3803172 >>> >>> Just animate the showEvent() INTO the current size. >>> >>> -- justin >>> >>> >>> >>> On Sep 28, 2012, at 5:44 PM, 张宇 wrote: >>> >>> Yes, I want to know about the floating dialog, the ui is animated,how >>> to do that, can you give me a tiny example? >>> >>> Http://zhangyu.me >>> >>> 在 2012-9-29,2:33,Justin Israel <[email protected] <javascript:>> 写道: >>> >>> I'm not sure I understand what part you are referring to in that >>> >>> video. I see a normal Maya menu drop down, and the selection brings up >>> >>> a normal floating dialog. What part in the video are you specifically >>> >>> interested in? >>> >>> >>> >>> On Fri, Sep 28, 2012 at 11:17 AM, 张宇 <[email protected] <javascript:>> >>> wrote: >>> >>> sorry for my mistake,here is the link http://vimeo.com/27662668 >>> >>> Sunday pipeline >>> >>> >>> Http://zhangyu.me >>> >>> >>> 在 2012-9-29,1:54,Justin Israel <[email protected] <javascript:>> 写道: >>> >>> >>> Where is the video? >>> >>> >>> >>> On Fri, Sep 28, 2012 at 10:11 AM, 张宇 <[email protected] <javascript:>> >>> wrote: >>> >>> >>> here is a video shows an pipeline tool in maya, the setting window is >>> >>> >>> slipping out from the top of maya window. >>> >>> >>> I think it's awesome, I really want to know how to made it. >>> >>> >>> it's created by pyqt >>> >>> >>> -- >>> >>> >>> My Blog Maya Programing BBS >>> >>> >>> >>> >>> -- >>> >>> >>> view archives: http://groups.google.com/group/python_inside_maya >>> >>> >>> change your subscription settings: >>> >>> >>> http://groups.google.com/group/python_inside_maya/subscribe >>> >>> >>> >>> -- >>> >>> view archives: http://groups.google.com/group/python_inside_maya >>> >>> change your subscription settings: >>> >>> http://groups.google.com/group/python_inside_maya/subscribe >>> >>> >>> -- >>> >>> view archives: http://groups.google.com/group/python_inside_maya >>> >>> change your subscription settings: >>> >>> http://groups.google.com/group/python_inside_maya/subscribe >>> >>> >>> -- >>> >>> view archives: http://groups.google.com/group/python_inside_maya >>> >>> change your subscription settings: >>> http://groups.google.com/group/python_inside_maya/subscribe >>> >>> >>> -- >>> view archives: http://groups.google.com/group/python_inside_maya >>> change your subscription settings: >>> http://groups.google.com/group/python_inside_maya/subscribe >>> >>> >>> -- >>> view archives: http://groups.google.com/group/python_inside_maya >>> change your subscription settings: >>> http://groups.google.com/group/python_inside_maya/subscribe >>> >> >> >> >> -- >> My Blog <http://zhangyu.me> Maya Programing >> BBS<http://maya-programing.cgget.info> >> >> >> -- >> view archives: http://groups.google.com/group/python_inside_maya >> change your subscription settings: >> http://groups.google.com/group/python_inside_maya/subscribe >> >> -- >> view archives: http://groups.google.com/group/python_inside_maya >> change your subscription settings: >> http://groups.google.com/group/python_inside_maya/subscribe >> > > > > -- > My Blog <http://zhangyu.me> Maya Programing > BBS<http://maya-programing.cgget.info> > > > -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
