objects.gui.animatedLoaderIcon.animatedLoaderIcon Class Reference

Wrapper class for the wx.animate.GIFAnimationCtrl class. More...

List of all members.

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


Detailed Description

Wrapper class for the wx.animate.GIFAnimationCtrl class.

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.


Member Function Documentation

def objects.gui.animatedLoaderIcon.animatedLoaderIcon.__init__ (   self,
  parent,
  fileName,
  initialPos 
)

animatedLoaderIcon constructor.

Parameters:
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

Parameters:
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


Member Data Documentation

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.


The documentation for this class was generated from the following file:

Generated on Mon Mar 30 00:26:12 2009 for EyeSpy by  doxygen 1.5.8