Changeset 513 for src/onScreenButton.py


Ignore:
Timestamp:
04/16/12 18:58:26 (3 years ago)
Author:
ecoughlan
Message:

Added dim files, more edits in general

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/onScreenButton.py

    r507 r513  
    2121        """
    2222        Window.__init__(self, pos, visible)
    23        
     23
    2424        self.isDepressed = isDepressed
    25        
     25
    2626        icon = None
    2727        width = 160
     
    4646            icon = buttonDir + icon
    4747            self.images.append(Image(self.pos, width, height, icon))
    48    
     48
    4949    def openWindow(self):
    5050        """
    5151            opens subwindows if the button is depressed, otherwise just
    5252            opens itself
    53            
     53
    5454            input type: none
    5555            return type: none
     
    6161        else:
    6262            self.visible = True
    63            
    64     def hover(self,surface):
     63
     64    def hover(self, surface):
    6565        """
    6666            Define the hover window for the object, by default none.
    67            
     67
    6868            input type: None
    6969            return type: None
    7070        """
    7171        self.hoverDescription.render(surface)
    72 
Note: See TracChangeset for help on using the changeset viewer.