Changeset 19

Show
Ignore:
Timestamp:
02/13/2012 04:15:44 PM (2 years ago)
Author:
ecoughlan
Message:

Windows now open and close continuously

Files:
1 modified

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