Changeset 507 for src/onScreenButton.py


Ignore:
Timestamp:
04/16/12 00:12:53 (3 years ago)
Author:
ecoughlan
Message:

menuPage, onScreenButton, rectangle, researchDescription, researchMenuEntry

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/onScreenButton.py

    r478 r507  
    1414class OnScreenButton(Window):
    1515    def __init__(self, pos, visible, title, isDepressed=False):
     16        """
     17            initializes the components of the OnScreenButton subclass
     18
     19            input type: int((x,y)), bool(visible), str(title),
     20                        bool(isDepressed)
     21        """
    1622        Window.__init__(self, pos, visible)
    1723       
     
    4248   
    4349    def openWindow(self):
     50        """
     51            opens subwindows if the button is depressed, otherwise just
     52            opens itself
     53           
     54            input type: none
     55            return type: none
     56        """
    4457        if self.isDepressed:
    4558            self.visible = True
Note: See TracChangeset for help on using the changeset viewer.