#NEWLINE# def start( self , no_of_bomb = 0 ) : #NEWLINE# #INDENT# self . time = ( - 1 ) #NEWLINE# self . started = True #NEWLINE# self . first_click = True #NEWLINE# self . bombed_cells = [ ] #NEWLINE# self . flagged_cells = [ ] #NEWLINE# self . to_be_released = [ ] #NEWLINE# self . count_opened_cells = 0 #NEWLINE# self . no_of_click = 0 #NEWLINE# self . squares = ( self . row * self . column ) #NEWLINE# self . no_of_bomb = ( no_of_bomb or int ( ( ( self . squares * 10 ) / 64 ) ) ) #NEWLINE# self . no_of_safe_zones = ( self . squares - self . no_of_bomb ) #NEWLINE# self . set_counter ( ) #NEWLINE# self . timer . setText ( '000' ) #NEWLINE# self . generate_bombs ( ) #NEWLINE# self . face . setStyleName ( 'facesmile' )