Changeset 19


Ignore:
Timestamp:
02/13/12 16:15:44 (3 years ago)
Author:
ecoughlan
Message:

Windows now open and close continuously

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.py

    r18 r19  
    106106   
    107107    """
    108     # This can all go somewhere else, like in an init file
     108    # This can all go somewhere else, like in an setup file
    109109    buildDict = {}
    110110    power = Building("POWER")
     
    139139   
    140140   
    141        
    142    
    143141    # update ui with windows
    144142    ui.addWindow(backGround)
     
    157155        # parse event
    158156        signal = ui.eventCheck()
    159         #if signal != None:
    160         #    print "Signal is: ", signal
    161         if signal == BUILD and not buildMenuFlag:
     157        if signal != None:
     158            print "Signal is: ", signal
     159        if signal == CLOSE:
     160            researchMenuFlag = False
     161            buildMenuFlag = False
     162        elif signal == BUILD and not buildMenuFlag:
    162163            researchMenuFlag = False
    163164            buildMenuFlag = True
Note: See TracChangeset for help on using the changeset viewer.