Public Member Functions | |
| def | __init__ |
| animatedLoaderIcon constructor. | |
| def | play |
| Start the animation. | |
| def | stop |
| Stop the animation. | |
| def | changePos |
| Change the position of the image. | |
Public Attributes | |
| parent | |
| fileName | |
| animLoaderIcon | |
| isPlaying | |
This class is mainly used to control the animated widget on the top right corner of EyeSpy's frame (the one used to indicate that the application is running)
Definition at line 22 of file animatedLoaderIcon.py.
| def objects.gui.animatedLoaderIcon.animatedLoaderIcon.__init__ | ( | self, | ||
| parent, | ||||
| fileName, | ||||
| initialPos | ||||
| ) |
animatedLoaderIcon constructor.
| parent | The container class for this object (i.e. mainFrameToolbar) | |
| fileName | Animated Gif FileName | |
| initialPos | Animated Gif Position on the tool bar |
Definition at line 28 of file animatedLoaderIcon.py.
00028 : 00029 # 00030 self.parent = parent 00031 self.fileName = fileName 00032 00033 self.animLoaderIcon = wx.animate.GIFAnimationCtrl(parent, -1, self.fileName, pos=initialPos) 00034 self.isPlaying = False 00035 ## Start the animation
| def objects.gui.animatedLoaderIcon.animatedLoaderIcon.changePos | ( | self, | ||
| newPos | ||||
| ) |
Change the position of the image.
This is usually done when the window is resized
| newPos,: | New Position |
Definition at line 48 of file animatedLoaderIcon.py.
00048 : 00049 if self.isPlaying == True: self.animLoaderIcon.Stop() 00050 00051 self.animLoaderIcon.Destroy() 00052 self.animLoaderIcon = wx.animate.GIFAnimationCtrl(self.parent, -1, self.fileName, pos=newPos) 00053 00054 if self.isPlaying == True: self.animLoaderIcon.Play() 00055
| def objects.gui.animatedLoaderIcon.animatedLoaderIcon.play | ( | self | ) |
Start the animation.
Definition at line 37 of file animatedLoaderIcon.py.
00037 : 00038 self.animLoaderIcon.Play() 00039 self.isPlaying = True 00040 ## Stop the animation
| def objects.gui.animatedLoaderIcon.animatedLoaderIcon.stop | ( | self | ) |
Stop the animation.
Definition at line 42 of file animatedLoaderIcon.py.
00042 : 00043 self.animLoaderIcon.Stop() 00044 self.isPlaying = False 00045 ## Change the position of the image. This is usually done when the window is resized
Definition at line 33 of file animatedLoaderIcon.py.
Definition at line 31 of file animatedLoaderIcon.py.
Definition at line 34 of file animatedLoaderIcon.py.
Definition at line 30 of file animatedLoaderIcon.py.
1.5.8